fetch('index', [ 'list' => $model->getList($search), ]); } /** * 分销商审核 * @param $apply_id * @return array|bool * @throws \think\exception\DbException */ public function submit($apply_id) { $model = ApplyModel::detail($apply_id); if ($model->submit($this->postData('apply'))) { return $this->renderSuccess('操作成功'); } return $this->renderError($model->getError() ?: '操作失败'); } }