Jelajahi Sumber

验证关键词重复

FengR 2 bulan lalu
induk
melakukan
b1dc1a2e50
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);