wesmiler 2 년 전
부모
커밋
c400eec08d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Services/LiveService.php

+ 1 - 1
app/Services/LiveService.php

@@ -1025,7 +1025,7 @@ class LiveService extends BaseService
             RedisService::clear("caches:live:users_{$liveId}_{$userId}");
         }
         // 更新
-        else if (!VideoCollectModel::where(['user_id'=> $userId,'type'=>1,'source_type'=>2, 'collect_id'=>$liveId])->update(['reward_total'=> DB::raw("reward_total + {$money}"),'update_time'=>time()])){
+        else if (!VideoCollectModel::where(['user_id'=> $userId,'type'=>1,'source_type'=>2, 'collect_id'=>$liveId])->update(['reward_total'=> DB::raw("reward_total + {$money}"),'is_online'=>1,'update_time'=>time()])){
             DB::rollBack();
             $this->error = 2305;
             RedisService::set("caches:live:reward:error_{$userId}", ['data'=> $order,'error'=>'更新打赏统计失败1'], 600);