fix(response):修正响应格式判断条件
This commit is contained in:
		
							parent
							
								
									353e07b984
								
							
						
					
					
						commit
						07bdfcb7b3
					
				@ -110,7 +110,7 @@ func Unmarshal(response AcsResponse, httpResponse *http.Response, format string)
 | 
				
			|||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if format != "xml" && format != "text" {
 | 
						if format != "xml" {
 | 
				
			||||||
		err = jsoniter.Unmarshal(response.GetHttpContentBytes(), response)
 | 
							err = jsoniter.Unmarshal(response.GetHttpContentBytes(), response)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			return errors.New("json Unmarshal:" + err.Error())
 | 
								return errors.New("json Unmarshal:" + err.Error())
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user