From ec96c1070668ecb7075cabdc70ae4be47a6def8f Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 21 Aug 2023 15:24:24 +0800 Subject: [PATCH 1/2] fix --- server/websocket/internal/logic/rendernotifylogic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/websocket/internal/logic/rendernotifylogic.go b/server/websocket/internal/logic/rendernotifylogic.go index 44d0cd51..1b4f0cc7 100644 --- a/server/websocket/internal/logic/rendernotifylogic.go +++ b/server/websocket/internal/logic/rendernotifylogic.go @@ -44,6 +44,7 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq, userinfo *a logx.Error("渲染回调参数错误:invalid param image") return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "invalid param image") } + logx.Info("渲染回调的base64:", req.Image) // 上传文件 var upload = file.Upload{ Ctx: l.ctx, From 72f07745b60b39949d79a2187139e91fce05cd09 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 21 Aug 2023 15:27:53 +0800 Subject: [PATCH 2/2] fix --- .../internal/logic/gettemplatebypidlogic.go | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/server/product/internal/logic/gettemplatebypidlogic.go b/server/product/internal/logic/gettemplatebypidlogic.go index a96152e2..6f464eae 100644 --- a/server/product/internal/logic/gettemplatebypidlogic.go +++ b/server/product/internal/logic/gettemplatebypidlogic.go @@ -117,26 +117,26 @@ func (l *GetTemplateByPidLogic) GetTemplateByPid(req *types.GetTemplateByPidReq, //写死的数据 "material_data": map[string]interface{}{ "QRcode": map[string]interface{}{ - "if_show": true, - "text": "二维码", - "default_val": "默认二维码", + "if_show": true, + "text": "二维码", + "default_value": "默认二维码", }, - "website": map[string]interface{}{ - "if_show": true, - "text": "网站", - "default_val": "默认网站", + "Website": map[string]interface{}{ + "if_show": true, + "text": "网站", + "default_value": "默认网站", }, - "slogan": map[string]interface{}{ - "if_show": true, - "text": "slogan", - "default_val": "默认slogan", + "Address": map[string]interface{}{ + "if_show": true, + "text": "address", + "default_value": "非洲", }, - "phone": map[string]interface{}{ - "if_show": true, - "text": "phone", - "default_val": "默认phone", + "Phone": map[string]interface{}{ + "if_show": true, + "text": "phone", + "default_value": "默认phone", }, - "logo": map[string]interface{}{ + "Logo": map[string]interface{}{ "material": "/image/logo/aHnT1_rzubdwax_scale.png", }, },