任务功能提交-测试-bug修改

This commit is contained in:
2025-12-12 19:52:41 +08:00
parent f4a25cf20e
commit 816cc9241e

View File

@@ -255,6 +255,9 @@ class Tasks extends Model
}
$quantity_str = "";
if($v['target_quantity']!=1){
if($progress > $v['target_quantity']){
$progress = $v['target_quantity'];
}
$quantity_str= "({$progress}/{$v['target_quantity']})";
}
$v['task_name'] = $v['task_name'].$quantity_str;
@@ -323,6 +326,9 @@ class Tasks extends Model
}
$reslut = Db::name('vs_tasks_student')->where('id',$task_student['id'])->update($task_student_data);
}else{
if($current_progress > $task_info['target_quantity']){
$current_progress = $task_info['target_quantity'];
}
if($task_info['target_quantity']==$current_progress){
$is_completed = 1;
}