post('type', 1); $datas = TaskService::make()->getTaskList($this->userId, $type); return showJson(1010, true, $datas); } /** * 更新任务 * @return array */ public function check() { $type =request()->post('type', 11); $collectId =request()->post('collect_id', 1); if(!$result = TaskService::make()->updateTask($this->userId,$type, $collectId)){ return showJson(1016, false); }else{ return showJson(1017, true, $result); } } }