Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop

This commit is contained in:
eson 2023-08-21 15:29:44 +08:00
commit f60fe1db56
2 changed files with 17 additions and 16 deletions

View File

@ -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",
},
},

View File

@ -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,