新增医生详情修改im请求问题

This commit is contained in:
2023-07-13 10:38:58 +08:00
parent 54feddd429
commit a5522bcb63
5 changed files with 222 additions and 39 deletions
+1 -1
View File
@@ -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)