@ -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() ?: '添加失败');