提交修改

This commit is contained in:
邹宗楠
2022-04-11 15:40:07 +08:00
parent a157f018ff
commit 65852ad289
3 changed files with 13 additions and 4 deletions

View File

@@ -582,7 +582,7 @@ func (a *API) OrderDetail(orderId string) (orderDetailResult *OrderDetailResult,
}
//尝试获取订单的真实手机号
//https://https://neworder.shop.jd.com/order/json/phoneSensltiveInfo
//https://neworder.shop.jd.com/order/json/phoneSensltiveInfo
func (a *API) PhoneSensltiveInfo(orderId, accessKey string) (fakeMobile string, err error) {
result, err := a.AccessStorePage("https://neworder.shop.jd.com/order/json/phoneSensltiveInfo", map[string]interface{}{
"orderId": orderId,
@@ -592,7 +592,7 @@ func (a *API) PhoneSensltiveInfo(orderId, accessKey string) (fakeMobile string,
}, true)
if err == nil {
if result["model"].(map[string]interface{})["mobile"] == nil {
fakeMobile = result["model"].(map[string]interface{})["phone"].(string)
fakeMobile = ""
} else {
fakeMobile = result["model"].(map[string]interface{})["mobile"].(string)
}