Explorar o código

内文搜索5条记录

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
0c008e89a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/DictController.php

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

@@ -182,7 +182,7 @@ class DictController extends Controller
             $table = UserDict::select($indexCol)
                                 ->where('note','like','%'.$word.'%')
                                 ->where('language','<>','my')
-                                ->take(10)
+                                ->take(5)
                                 ->get();
             $resultCount += count($table);
             $wordData=[