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