wzq лет назад: 5
Родитель
Сommit
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());