瀏覽代碼

内容产生米

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