瀏覽代碼

只有设置content才查询内文

visuddhinanda 10 月之前
父節點
當前提交
ec023b43b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api-v8/app/Http/Controllers/DictController.php

+ 1 - 1
api-v8/app/Http/Controllers/DictController.php

@@ -183,7 +183,7 @@ class DictController extends Controller
             }
             }
         }
         }
 
 
-        if ($resultCount < 2) {
+        if ($resultCount < 2 && $request->has('content')) {
             //查询内文
             //查询内文
             $wordDataOutput = [];
             $wordDataOutput = [];
             $table = UserDict::select($indexCol)
             $table = UserDict::select($indexCol)