fix:合图

This commit is contained in:
momo 2023-10-16 18:35:59 +08:00
parent 333db69e4a
commit 0310a6bd21

View File

@ -3,7 +3,6 @@ package curl
import ( import (
"bytes" "bytes"
"context" "context"
"encoding/json"
"fmt" "fmt"
"time" "time"
@ -112,10 +111,10 @@ func (c *defaultClient) PostJson(jsonData interface{}, res interface{}) error {
if resp.StatusCode() != 200 { if resp.StatusCode() != 200 {
err = fmt.Errorf("服务端失败,返回结果:%+v", resp.RawResponse.Status) err = fmt.Errorf("服务端失败,返回结果:%+v", resp.RawResponse.Status)
logx.Errorf("客户端 请求失败 Client PostForm Server error:%+v", err) logx.Errorf("客户端 请求失败 Client PostForm Server error:%+v", err)
if resp.RawResponse.StatusCode == 422 { // if resp.RawResponse.StatusCode == 422 {
jsonDataB, _ := json.Marshal(jsonData) // jsonDataB, _ := json.Marshal(jsonData)
logc.Infof(c.ctx, "服务端失败,返回状态码:%+v,请求参数:%+v", resp.RawResponse.StatusCode, string(jsonDataB)) // logc.Infof(c.ctx, "服务端失败,返回状态码:%+v,请求参数:%+v", resp.RawResponse.StatusCode, string(jsonDataB))
} // }
} }
return err return err
} }