提交修改
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user