Browse Source

验证关键词重复

FengR 2 tháng trước cách đây
mục cha
commit
b1dc1a2e50
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);