Merge branch 'master' of e.coding.net:rosydev/baseapi
This commit is contained in:
@@ -444,7 +444,11 @@ func (a *API) PhoneSensltiveInfo(orderId, accessKey string) (fakeMobile string,
|
|||||||
"token": JdsMobileToken,
|
"token": JdsMobileToken,
|
||||||
}, true)
|
}, true)
|
||||||
if err == nil {
|
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
|
return fakeMobile, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user