From 9122fa5e32b6b999c620f2d0d8d46267ed647df5 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 15 Aug 2023 17:09:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/InformationController.php | 1 + app/api/controller/TaskController.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/api/controller/InformationController.php b/app/api/controller/InformationController.php index 40c3d2e60..cc8d73c9f 100644 --- a/app/api/controller/InformationController.php +++ b/app/api/controller/InformationController.php @@ -90,6 +90,7 @@ class InformationController extends BaseApiController $extend=$task['extend']; $extend['informationg_demand']=$res['id']; $task->extend=json_encode($extend); + $task->status=3; $task->save(); } diff --git a/app/api/controller/TaskController.php b/app/api/controller/TaskController.php index a734142fe..6cd59ee14 100644 --- a/app/api/controller/TaskController.php +++ b/app/api/controller/TaskController.php @@ -13,6 +13,7 @@ class TaskController extends BaseApiController{ $where[]=['company_id','=',$this->userInfo['company_id']]; }else{ $where[]=['director_uid','=',$this->userId]; + $where[]=['status','=',1]; } $res=Task::where($where) ->field(['id', 'title','money','template_id','director_uid', 'company_id', 'start_time', 'end_time', 'director_uid', 'type', 'status', 'content','extend'])