Просмотр исходного кода

:bug: 词典查询数查错表

visuddhinanda 3 лет назад
Родитель
Сommit
a347fedf5c
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      app/Http/Controllers/UserStatisticController.php

+ 4 - 3
app/Http/Controllers/UserStatisticController.php

@@ -69,10 +69,11 @@ class UserStatisticController extends Controller
                     return Wbw::where('editor_id',$queryUserId)
                         ->count();
                         });
-        //查字典
+        //查字典次数
         $lookupCount = Cache::remember("user/{$userName}/lookup/count",$cacheExpiry,function() use($queryUserId){
-                            return UserOperationDaily::where('user_id',$queryUserId)
-                                    ->count();
+                            return UserOperationLog::where('user_id',$queryUserId)
+                                                    ->where('op_type','dict_lookup')
+                                                    ->count();
                                 });
         //译文
         //TODO 判断是否是译文channel