京东商城订单真实手机号修改

This commit is contained in:
suyl
2020-06-05 20:40:09 +08:00
parent 762a41dbdd
commit 341e0c11e4

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
}