fix:合图调整
This commit is contained in:
@@ -160,6 +160,7 @@ func (l *defaultImageHandle) LogoInfo(ctx context.Context, in *LogoInfoReq) (*Lo
|
||||
type (
|
||||
LogoInfoSetReq struct {
|
||||
LogoUrl string `json:"logo_url"`
|
||||
Version string `json:"version"`
|
||||
}
|
||||
LogoInfoSetRes struct {
|
||||
Res string `json:"res"`
|
||||
@@ -168,8 +169,9 @@ type (
|
||||
|
||||
func (l *defaultImageHandle) LogoInfoSet(ctx context.Context, in *LogoInfoSetReq) (*LogoInfoSetRes, error) {
|
||||
var resultBLM constants.BLMServiceUrlResult
|
||||
postMap := make(map[string]string, 1)
|
||||
postMap := make(map[string]string, 2)
|
||||
postMap["logo_url"] = in.LogoUrl
|
||||
postMap["version"] = in.Version
|
||||
|
||||
logc.Infof(ctx, "算法请求--LOGO基础信息--开始时间:%v", time.Now().UTC())
|
||||
err := curl.NewClient(ctx, &curl.Config{
|
||||
@@ -306,7 +308,7 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
|
||||
"color": in.TemplateTagColor.Color,
|
||||
"index": in.TemplateTagColor.Index,
|
||||
}
|
||||
var postMap = make(map[string]interface{}, 2)
|
||||
var postMap = make(map[string]interface{}, 3)
|
||||
postMap["module_data"] = moduleDataMap
|
||||
postMap["tag_data"] = in.ProductTemplateTagGroups
|
||||
postMap["param_data"] = combineParam
|
||||
|
||||
Reference in New Issue
Block a user