wzq 5 年之前
父节点
当前提交
e09b014732
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/TopicUseCount.php

+ 1 - 1
app/Console/Commands/TopicUseCount.php

@@ -49,7 +49,7 @@ class TopicUseCount extends Command
             try{
                 $value = Redis::ZSCORE($key, $topicId);
                 Redis::ZREM ($key, $topicId);
-                $this->topic->where('id', $topicId)->increment('use_bean', $value);
+                $this->topic->where('id', $topicId)->increment('use_count', $value);
                 Log::debug('更新更新话题使用数成功'.$topicId.'-'.$value);
             }catch (\Exception $exception){
                 Log::error('更新更新话题使用数失败'.$topicId.'-'.$val.$exception->getMessage());