Parcourir la source

内容产生米

wzq il y a 5 ans
Parent
commit
f1060bf57b
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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());