+PrivilegeSearchUser

AccessStorePage2支持返回非json
This commit is contained in:
gazebo
2019-11-27 11:41:27 +08:00
parent ced4895f5f
commit 29d6571243
4 changed files with 83 additions and 1 deletions

View File

@@ -281,6 +281,10 @@ func (a *API) AccessStorePage2(fullURL string, params map[string]interface{}, is
if jsonResult1 == nil {
return platformapi.ErrLevelRecoverableErr, fmt.Errorf("mapData is nil")
}
if jsonResult1[platformapi.KeyData] != nil {
retVal = bodyStr
return platformapi.ErrLevelSuccess, nil
}
retVal = jsonResult1
code, ok := jsonResult1["code"].(string)
if !ok {