Преглед изворни кода

:bug: 词典查询数查错表

visuddhinanda пре 3 година
родитељ
комит
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)
                     return Wbw::where('editor_id',$queryUserId)
                         ->count();
                         ->count();
                         });
                         });
-        //查字典
+        //查字典次数
         $lookupCount = Cache::remember("user/{$userName}/lookup/count",$cacheExpiry,function() use($queryUserId){
         $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
         //TODO 判断是否是译文channel