This commit is contained in:
邹宗楠
2022-11-07 18:39:59 +08:00
parent c1a4797932
commit 3ab6528e60
9 changed files with 0 additions and 16 deletions

View File

@@ -60,7 +60,6 @@ var (
)
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 += utils.Int64ToStr(time.Now().Unix())
jxutils.CallMsgHandler(func() {
@@ -204,10 +203,8 @@ func (c *PurchaseHandler) getOrder(a *jdapi.API, orderID string) (order *model.G
switch taskIndex {
case 0:
orderMap, err = a.QuerySingleOrder(orderID)
globals.SugarLogger.Debugf("===========================new order order Mao%s", utils.Format4Output(orderMap, false))
if err == nil {
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 {
//a.SetJdCookie(configs[0].Value)
a.SetCookieWithStr(configs[0].Value)