新增医生详情修改im请求问题
This commit is contained in:
@@ -80,7 +80,7 @@ func postRequest(url string, requestBody []byte) (map[string]interface{}, error)
|
||||
return nil, errors.New("请求im失败")
|
||||
}
|
||||
|
||||
if errorCode, ok := responseMap["ErrorCode"]; ok {
|
||||
if errorCode, ok := responseMap["ErrorCode"].(int); ok {
|
||||
if errorCode != 0 {
|
||||
if errorInfo, ok := responseMap["ErrorInfo"].(string); ok {
|
||||
return nil, errors.New(errorInfo)
|
||||
|
||||
Reference in New Issue
Block a user