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