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: