1
This commit is contained in:
@@ -60,6 +60,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (c *PurchaseHandler) OnOrderMsg(a *jdapi.API, msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
func (c *PurchaseHandler) OnOrderMsg(a *jdapi.API, msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
||||||
|
globals.SugarLogger.Debug("===================京东订单 := %s", utils.Format4Output(msg, false))
|
||||||
primaryID := msg.BillID
|
primaryID := msg.BillID
|
||||||
primaryID += utils.Int64ToStr(time.Now().Unix())
|
primaryID += utils.Int64ToStr(time.Now().Unix())
|
||||||
jxutils.CallMsgHandler(func() {
|
jxutils.CallMsgHandler(func() {
|
||||||
@@ -203,8 +204,10 @@ func (c *PurchaseHandler) getOrder(a *jdapi.API, orderID string) (order *model.G
|
|||||||
switch taskIndex {
|
switch taskIndex {
|
||||||
case 0:
|
case 0:
|
||||||
orderMap, err = a.QuerySingleOrder(orderID)
|
orderMap, err = a.QuerySingleOrder(orderID)
|
||||||
|
globals.SugarLogger.Debugf("===========================new order order Mao%s", utils.Format4Output(orderMap, false))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
order = c.Map2Order(orderMap)
|
order = c.Map2Order(orderMap)
|
||||||
|
globals.SugarLogger.Debugf("===========================new really order Mao%s", utils.Format4Output(order, false))
|
||||||
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)
|
||||||
a.SetCookieWithStr(configs[0].Value)
|
a.SetCookieWithStr(configs[0].Value)
|
||||||
|
|||||||
Reference in New Issue
Block a user