添加腾讯支持

This commit is contained in:
gazebo
2019-10-29 11:38:03 +08:00
parent a3cbf24a92
commit 45c280d8d6
4 changed files with 336 additions and 1 deletions

View File

@@ -166,7 +166,10 @@ func AccessPlatformAPIWithRetry(client *http.Client, handleRequest func() *http.
// 临时处理返回值居然不是map的情况
if bodyMap2, ok := bodyGeneral.(map[string]interface{}); ok {
bodyMap = bodyMap2
} else if bodyGeneral != nil {
} else {
if bodyGeneral == nil {
bodyGeneral = string(bodyData)
}
bodyMap = map[string]interface{}{
KeyData: bodyGeneral,
}