From 121b714d710cf3c865f4a1b5efe81abec11056d1 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 01 Nov 2025 14:36:36 +0800
Subject: [PATCH] 修复名片模板生成失败问题 修复后台名片查看不显示头像和logo问题

---
 admin/app/shop/controller/plus/business/Template.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/admin/app/shop/controller/plus/business/Template.php b/admin/app/shop/controller/plus/business/Template.php
index 9f41648..6f9c3f2 100644
--- a/admin/app/shop/controller/plus/business/Template.php
+++ b/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('添加失败');
     }

--
Gitblit v1.9.2