6
0

fix(response):修正响应格式判断条件

This commit is contained in:
liguanjie 2025-09-11 17:33:21 +08:00
parent 353e07b984
commit 07bdfcb7b3

View File

@ -110,7 +110,7 @@ func Unmarshal(response AcsResponse, httpResponse *http.Response, format string)
return
}
if format != "xml" && format != "text" {
if format != "xml" {
err = jsoniter.Unmarshal(response.GetHttpContentBytes(), response)
if err != nil {
return errors.New("json Unmarshal:" + err.Error())