This commit is contained in:
laodaming 2023-08-14 12:05:22 +08:00
parent 06e32e6af9
commit 5bc6f411be
2 changed files with 8 additions and 4 deletions

View File

@ -183,10 +183,10 @@ func getCombineImage(ctx context.Context, svcCtx *svc.ServiceContext, parseInfo
//需要替换的参数 //需要替换的参数
replaceData := map[string]interface{}{ replaceData := map[string]interface{}{
"logo_url": parseInfo.RenderData.Logo, "logo_url": parseInfo.RenderData.Logo,
"website": "", "website": parseInfo.RenderData.Website,
"slogan": "", "slogan": parseInfo.RenderData.Slogan,
"address": "", "address": parseInfo.RenderData.Address,
"phone": "", "phone": parseInfo.RenderData.Phone,
"colors": []string{}, "colors": []string{},
"template_tagid": []string{"b1a"}, "template_tagid": []string{"b1a"},
"is_crop": false, "is_crop": false,

View File

@ -16,6 +16,10 @@ type RenderData struct {
ProductId int64 `json:"product_id"` //产品id ProductId int64 `json:"product_id"` //产品id
UserMaterialId int64 `json:"user_material_id"` //用户素材id UserMaterialId int64 `json:"user_material_id"` //用户素材id
Logo string `json:"logo"` //log资源地址(websocket连接建立再赋值) Logo string `json:"logo"` //log资源地址(websocket连接建立再赋值)
Website string `json:"website"` //网站
Slogan string `json:"slogan"` //slogan
Address string `json:"address"` //地址
Phone string `json:"phone"` //电话
UserId int64 `json:"user_id"` //用户id(websocket连接建立再赋值) UserId int64 `json:"user_id"` //用户id(websocket连接建立再赋值)
GuestId int64 `json:"guest_id"` //游客id(websocket连接建立再赋值) GuestId int64 `json:"guest_id"` //游客id(websocket连接建立再赋值)
} }