This commit is contained in:
gazebo
2019-12-30 17:20:52 +08:00
parent 4d8c4d67d4
commit b98fbb9b83

View File

@@ -82,6 +82,9 @@ func (a *API) AccessUserPage2(subURL string, params map[string]interface{}, isPo
return platformapi.ErrLevelRecoverableErr, fmt.Errorf("mapData is nil")
}
retVal = jsonResult1
if jsonResult1["code"] == nil {
return platformapi.ErrLevelGeneralFail, fmt.Errorf("返回结果格式不正常")
}
code := int(utils.MustInterface2Int64(jsonResult1["code"]))
if code == ResponseCodeSuccess {
retVal, _ = jsonResult1["data"].(map[string]interface{})