aa
This commit is contained in:
@@ -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 {
|
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdStorePageCookie", model.ConfigTypeCookie, ""); err == nil {
|
||||||
a.SetJdCookie(configs[0].Value)
|
a.SetJdCookie(configs[0].Value)
|
||||||
}
|
}
|
||||||
realMobile, _ = a.GetRealMobile4Order(orderID, order.VendorStoreID)
|
realMobile, err = a.GetRealMobile4Order(orderID, order.VendorStoreID)
|
||||||
if realMobile != "" {
|
if err == nil && realMobile != "" {
|
||||||
order.ConsigneeMobile2 = jxutils.FormalizeMobile(realMobile)
|
order.ConsigneeMobile2 = jxutils.FormalizeMobile(realMobile)
|
||||||
|
} else {
|
||||||
|
if strings.Contains(err.Error(), "用户登陆") {
|
||||||
|
globals.SugarLogger.Warnf("jd 获取真实号cookie可能过期了!")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 1:
|
case 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user