fix
This commit is contained in:
parent
d85c39327c
commit
161ee4304b
|
@ -18,6 +18,7 @@ import (
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 这里请求的py接口返回数据
|
// 这里请求的py接口返回数据
|
||||||
|
@ -227,7 +228,7 @@ func getCombineImage(ctx context.Context, svcCtx *svc.ServiceContext, parseInfo
|
||||||
/*f, _ := os.Create("a.txt")
|
/*f, _ := os.Create("a.txt")
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
f.Write(postData)*/
|
f.Write(postData)*/
|
||||||
httpRsp, err := curl.ApiCall(url, "POST", header, bytes.NewReader(postData), 20)
|
httpRsp, err := curl.ApiCall(url, "POST", header, bytes.NewReader(postData), time.Second*20)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error("failed to combine logo:", err)
|
logx.Error("failed to combine logo:", err)
|
||||||
return "", err
|
return "", err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user