quanwei
2025-11-01 121b714d710cf3c865f4a1b5efe81abec11056d1
admin/app/shop/controller/plus/business/Template.php
@@ -49,7 +49,7 @@
        $paramL['image'] = $Qrcode->getImageE($param['template'], $template_id);
        $paramL['style'] = json_encode($param['template'], JSON_UNESCAPED_UNICODE);
        if ($model->add($paramL)) {
            return $this->renderSuccess('编辑成功', url('business.template/index'));
            return $this->renderSuccess('编辑成功');
        }
        return $this->renderError('编辑失败');
    }
@@ -176,7 +176,7 @@
            $paramI['image'] = $Qrcode->getImageE($param['template'], $template_id);
            $modelBusiness = (new BusinessTemplate())->where(['template_id' => $template_id])->find();
            $modelBusiness->where(['template_id' => $template_id])->update($paramI);
            return $this->renderSuccess('添加成功', url('business.template/index'));
            return $this->renderSuccess('添加成功');
        }
        return $this->renderError('添加失败');
    }