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());