From eabf6ff8e26d9018b85b82424fc841ab0fde822b Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 18 Oct 2019 17:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAccessPlatformAPIWithRetry?= =?UTF-8?q?=E4=B8=ADbodyGeneral=E5=8F=AF=E8=83=BD=E4=B8=BAnil=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/platformapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformapi/platformapi.go b/platformapi/platformapi.go index 5d4b761a..1bafbbaa 100644 --- a/platformapi/platformapi.go +++ b/platformapi/platformapi.go @@ -166,7 +166,7 @@ func AccessPlatformAPIWithRetry(client *http.Client, handleRequest func() *http. // 临时处理返回值居然不是map的情况 if bodyMap2, ok := bodyGeneral.(map[string]interface{}); ok { bodyMap = bodyMap2 - } else { + } else if bodyGeneral != nil { bodyMap = map[string]interface{}{ KeyData: bodyGeneral, }