getList($search); return $this->fetch('index', compact('list')); } /** * 砍价榜 * @param $task_id * @return mixed * @throws \think\exception\DbException */ public function help($task_id) { $model = new TaskHelpModel; $list = $model->getList($task_id); return $this->fetch('help', compact('list')); } /** * 删除砍价任务 * @param $task_id * @return array * @throws \think\exception\DbException */ public function delete($task_id) { // 砍价活动详情 $model = TaskModel::detail($task_id); if (!$model->setDelete()) { return $this->renderError($model->getError() ?: '删除失败'); } return $this->renderSuccess('删除成功'); } }