merchantId = $this->request->param("merchantId"); $options = PaymentModel::getAll($this->storeId, $this->merchantId); return $this->renderSuccess(compact('options')); } /** * 更新支付配置 * @return Json */ public function update(): Json { $model = new PaymentModel; if ($model->updateOptions($this->postForm())) { return $this->renderSuccess('更新成功'); } return $this->renderError($model->getError() ?: '更新失败'); } }