Merge branch 'master' of e.coding.net:rosydev/baseapi

This commit is contained in:
苏尹岚
2020-06-09 18:58:17 +08:00

View File

@@ -444,7 +444,11 @@ func (a *API) PhoneSensltiveInfo(orderId, accessKey string) (fakeMobile string,
"token": JdsMobileToken,
}, true)
if err == nil {
fakeMobile = result["model"].(map[string]interface{})["phone"].(string)
if result["model"].(map[string]interface{})["phone"] == nil {
fakeMobile = result["model"].(map[string]interface{})["mobile"].(string)
} else {
fakeMobile = result["model"].(map[string]interface{})["phone"].(string)
}
}
return fakeMobile, err
}