Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop
This commit is contained in:
commit
f60fe1db56
|
@ -117,26 +117,26 @@ func (l *GetTemplateByPidLogic) GetTemplateByPid(req *types.GetTemplateByPidReq,
|
||||||
//写死的数据
|
//写死的数据
|
||||||
"material_data": map[string]interface{}{
|
"material_data": map[string]interface{}{
|
||||||
"QRcode": map[string]interface{}{
|
"QRcode": map[string]interface{}{
|
||||||
"if_show": true,
|
"if_show": true,
|
||||||
"text": "二维码",
|
"text": "二维码",
|
||||||
"default_val": "默认二维码",
|
"default_value": "默认二维码",
|
||||||
},
|
},
|
||||||
"website": map[string]interface{}{
|
"Website": map[string]interface{}{
|
||||||
"if_show": true,
|
"if_show": true,
|
||||||
"text": "网站",
|
"text": "网站",
|
||||||
"default_val": "默认网站",
|
"default_value": "默认网站",
|
||||||
},
|
},
|
||||||
"slogan": map[string]interface{}{
|
"Address": map[string]interface{}{
|
||||||
"if_show": true,
|
"if_show": true,
|
||||||
"text": "slogan",
|
"text": "address",
|
||||||
"default_val": "默认slogan",
|
"default_value": "非洲",
|
||||||
},
|
},
|
||||||
"phone": map[string]interface{}{
|
"Phone": map[string]interface{}{
|
||||||
"if_show": true,
|
"if_show": true,
|
||||||
"text": "phone",
|
"text": "phone",
|
||||||
"default_val": "默认phone",
|
"default_value": "默认phone",
|
||||||
},
|
},
|
||||||
"logo": map[string]interface{}{
|
"Logo": map[string]interface{}{
|
||||||
"material": "/image/logo/aHnT1_rzubdwax_scale.png",
|
"material": "/image/logo/aHnT1_rzubdwax_scale.png",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -44,6 +44,7 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq, userinfo *a
|
||||||
logx.Error("渲染回调参数错误:invalid param image")
|
logx.Error("渲染回调参数错误:invalid param image")
|
||||||
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "invalid param image")
|
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "invalid param image")
|
||||||
}
|
}
|
||||||
|
logx.Info("渲染回调的base64:", req.Image)
|
||||||
// 上传文件
|
// 上传文件
|
||||||
var upload = file.Upload{
|
var upload = file.Upload{
|
||||||
Ctx: l.ctx,
|
Ctx: l.ctx,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user