From 6858bd95d5a7ecbf1743a8697e262d122c20bb32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Thu, 11 Dec 2025 17:28:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=8A=9F=E8=83=BD=E6=8F=90?= =?UTF-8?q?=E4=BA=A4-=E8=81=94=E8=B0=83-=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Tasks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/model/Tasks.php b/application/api/model/Tasks.php index d9f53c8d..d464e1db 100644 --- a/application/api/model/Tasks.php +++ b/application/api/model/Tasks.php @@ -228,7 +228,7 @@ class Tasks extends Model $current_progress =1; } //查询任务 - $task_info = Db::name('vs_tasks')->where('task_id',$task_id)->where('delete_time',0)->where('is_active',1)->find(); + $task_info = Db::name('vs_tasks')->where('id',$task_id)->where('delete_time',0)->where('is_active',1)->find(); if(empty($task_info)){ return ['code' => 0, 'msg' => '任务不存在或已删除','data' => null]; } @@ -311,7 +311,7 @@ class Tasks extends Model return ['code' => 0, 'msg' => '请先实名认证','data' => null]; } } - $task_info = Db::name('vs_tasks')->where('task_id',$task_id)->find(); + $task_info = Db::name('vs_tasks')->where('id',$task_id)->find(); if (!$task_info) { return ['code' => 0, 'msg' => '任务不存在','data' => null]; }