This commit is contained in:
苏尹岚
2021-04-12 16:55:33 +08:00
parent 050eaa21f3
commit accfdcb4ab

View File

@@ -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: