Explorar el Código

验证关键词重复

FengR hace 2 meses
padre
commit
b1dc1a2e50
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/JsonRpc/PublicRpcService.php

+ 1 - 1
app/JsonRpc/PublicRpcService.php

@@ -4292,7 +4292,7 @@ class PublicRpcService implements PublicRpcServiceInterface
      */
     public function checkRepeatKeyword(array $data): array
     {
-        if(empty($data['keyword']) || $data['keyword'] == ''){
+        if(empty($data['keyword']) || $data['keyword'] == '' || $data['keyword'] == '[]'){
             return Result::success('关键词为空');
         }
         $keyword = json_decode($data['keyword'],true);