wesmiler před 1 týdnem
rodič
revize
9721c8ec1a

+ 1 - 1
app/Services/Api/PaperService.php

@@ -69,7 +69,7 @@ class PaperService extends BaseService
         $sc = isset($params['sc']) ? $params['sc'] : 0;
         $type = isset($params['type']) ? $params['type'] : 0;
         $sceneType = isset($params['scene_type']) ? $params['scene_type'] : 0;
-        if (empty($sc) && !in_array($sceneType, [3, 4, 6])) {
+        if (empty($sc) && $sceneType) {
             ExamAccessLogModel::saveLog(date('Y-m-d'), $type, $sceneType);
         }
         if ($datas) {

+ 1 - 1
app/Services/Exam/SubjectService.php

@@ -141,7 +141,7 @@ class SubjectService extends BaseService
         $cacheKey = "caches:exam:subjects:{$type}";
         $datas = RedisService::get($cacheKey);
         // 分类入口访问统计
-        if (empty($sc)) {
+        if (empty($sc) && $sceneType) {
             ExamAccessLogModel::saveLog(date('Y-m-d'), $type, $sceneType);
         }
         if($datas){