新需求:PK任务 提交

This commit is contained in:
2026-01-20 18:21:46 +08:00
parent f37328f8bd
commit 3cfc391a5d
3 changed files with 35 additions and 3 deletions

View File

@@ -294,7 +294,7 @@ class Tasks extends Model
if($v['task_id'] == 35){
//获胜数量
$user_win_times = $user_daily_tasks['ext'] ?? 0;
$quantity_str = $quantity_str." 胜:".$user_win_times.")场";
$quantity_str = $quantity_str." 胜:".$user_win_times."/1)场";
}
$v['task_name'] = $v['task_name'].$quantity_str;
$v['jump_type_str'] = $this->jump_type[$v['jump_type']];
@@ -500,7 +500,7 @@ class Tasks extends Model
$ext = $user_daily_tasks['ext'] + 1;
}
$current_progress = $user_daily_tasks['current_progress'] +$current_progress;
if($current_progress >= $task_info['target_quantity'] && $user_daily_tasks['ext']==1){
if($current_progress >= $task_info['target_quantity'] && $user_daily_tasks['ext'] >= 1){
$is_completed = 1;
$completion_time = time();
}else{