Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop
This commit is contained in:
commit
f047419fcb
|
@ -180,7 +180,7 @@ func getCombineImage(ctx context.Context, svcCtx *svc.ServiceContext, parseInfo
|
||||||
"address": "",
|
"address": "",
|
||||||
"phone": "",
|
"phone": "",
|
||||||
"colors": []string{},
|
"colors": []string{},
|
||||||
"template_tagid": []string{},
|
"template_tagid": []string{"b1a"},
|
||||||
"is_crop": false,
|
"is_crop": false,
|
||||||
"shape": "",
|
"shape": "",
|
||||||
"ratio": 0,
|
"ratio": 0,
|
||||||
|
@ -222,6 +222,9 @@ func getCombineImage(ctx context.Context, svcCtx *svc.ServiceContext, parseInfo
|
||||||
url := svcCtx.Config.PythonApi.CombineImageUrl
|
url := svcCtx.Config.PythonApi.CombineImageUrl
|
||||||
header := make(map[string]string)
|
header := make(map[string]string)
|
||||||
header["content-type"] = "application/json"
|
header["content-type"] = "application/json"
|
||||||
|
/*f, _ := os.Create("a.txt")
|
||||||
|
defer f.Close()
|
||||||
|
f.Write(postData)*/
|
||||||
httpRsp, err := curl.ApiCall(url, "POST", header, bytes.NewReader(postData), 20)
|
httpRsp, err := curl.ApiCall(url, "POST", header, bytes.NewReader(postData), 20)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error("failed to combine logo:", err)
|
logx.Error("failed to combine logo:", err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user