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'])