getList($this->getSupplierId()); return $this->renderSuccess('', compact('list')); } //申请 public function apply() { $data = $this->postData(); $data['shop_supplier_id'] = $this->getSupplierId(); $model = new ServiceApplyModel; if ($model->apply($data)) { return $this->renderSuccess('申请成功'); } return $this->renderError($model->getError() ?: '提交失败'); } //退出 public function quit() { $data = $this->postData(); $model = ServiceApplyModel::detail($data['service_security_id'],$this->getSupplierId()); if ($model->quit()) { return $this->renderSuccess('退出成功'); } return $this->renderError($model->getError() ?: '提交失败'); } }