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}");
             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();
             DB::rollBack();
             $this->error = 2305;
             $this->error = 2305;
             RedisService::set("caches:live:reward:error_{$userId}", ['data'=> $order,'error'=>'更新打赏统计失败1'], 600);
             RedisService::set("caches:live:reward:error_{$userId}", ['data'=> $order,'error'=>'更新打赏统计失败1'], 600);