From accfdcb4ab619e8131893de88df6d18d7be915e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 12 Apr 2021 16:55:33 +0800 Subject: [PATCH] aa --- business/partner/purchase/jd/order.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/business/partner/purchase/jd/order.go b/business/partner/purchase/jd/order.go index 087241234..021e25c4f 100644 --- a/business/partner/purchase/jd/order.go +++ b/business/partner/purchase/jd/order.go @@ -218,9 +218,13 @@ func (c *PurchaseHandler) getOrder(a *jdapi.API, orderID string) (order *model.G if configs, err := dao.QueryConfigs(dao.GetDB(), "jdStorePageCookie", model.ConfigTypeCookie, ""); err == nil { a.SetJdCookie(configs[0].Value) } - realMobile, _ = a.GetRealMobile4Order(orderID, order.VendorStoreID) - if realMobile != "" { + realMobile, err = a.GetRealMobile4Order(orderID, order.VendorStoreID) + if err == nil && realMobile != "" { order.ConsigneeMobile2 = jxutils.FormalizeMobile(realMobile) + } else { + if strings.Contains(err.Error(), "用户登陆") { + globals.SugarLogger.Warnf("jd 获取真实号cookie可能过期了!") + } } } case 1: