wzq преди 5 години
родител
ревизия
f1060bf57b
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      app/Console/Commands/PostCollectBean.php

+ 1 - 0
app/Console/Commands/PostCollectBean.php

@@ -56,6 +56,7 @@ class PostCollectBean extends Command
                 $value = Redis::ZSCORE($key, $postId);
                 Redis::ZREM ($key, $postId);
                 $this->postData->where('post_id', $postId)->increment('collect_bean', $value);
+                Redis::HINCRBY('post_info_'.$postId, 'collect_bean', $value);
                 Log::debug('更新内容领取U米成功'.$postId.'-'.$value);
             }catch (\Exception $exception){
                 Log::error('更新内容领取U米失败'.$postId.'-'.$val.$exception->getMessage());