From 84acbd4f5cfea528608c21ce33a5fb15b0a7b2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=98=89?= <445241500@qq.com> Date: Tue, 28 May 2024 23:06:32 +0800 Subject: [PATCH] 1 --- app/store/controller/setting/payment/Template.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/store/controller/setting/payment/Template.php b/app/store/controller/setting/payment/Template.php index da2cf8db..12c4869f 100644 --- a/app/store/controller/setting/payment/Template.php +++ b/app/store/controller/setting/payment/Template.php @@ -69,7 +69,10 @@ class Template extends Controller { // 新增记录 $model = new PaymentTemplateModel; - if ($model->add($this->postData())) { + + $data = $this->postData(); + $data['merchant_id'] = $this->merchantId; + if ($model->add($data)) { return $this->renderSuccess('添加成功'); } return $this->renderError($model->getError() ?: '添加失败');