任务bug修改

This commit is contained in:
2025-12-26 14:02:32 +08:00
parent f9de7a3a06
commit 8f7ea8b289
3 changed files with 8 additions and 6 deletions

View File

@@ -59,11 +59,12 @@ class Subsidy
}
$transaction_one = db::name('vs_give_gift')
->whereIn('from_id',$v['room_id'])
->where(['from'=>['in',[2,3,6]],'createtime' => ['between', [$week_start_time_seach, $week_end_time_seach]]])
->where(['from'=>2])
->where(['createtime'=>['>=',$week_start_time_seach]])
->where(['createtime'=>['<',$week_end_time_seach]])
->sum('total_price');
$transaction += $transaction_one;
}
if($transaction > 0){
//判断是否已经生成过
if (db::name('vs_guild_subsidy')->where(['guild_id'=>$value['id'],'week'=>$time_value])->find()) {