From 341e0c11e43f1496f9243da34d597425baa3748a Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Fri, 5 Jun 2020 20:40:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E5=95=86=E5=9F=8E=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E7=9C=9F=E5=AE=9E=E6=89=8B=E6=9C=BA=E5=8F=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/jdshopapi/store_page.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platformapi/jdshopapi/store_page.go b/platformapi/jdshopapi/store_page.go index bddebfd1..91bf4101 100644 --- a/platformapi/jdshopapi/store_page.go +++ b/platformapi/jdshopapi/store_page.go @@ -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 }