This commit is contained in:
邹宗楠
2024-05-28 10:03:29 +08:00
parent 25c8696d99
commit 6f64b2930a
3 changed files with 46 additions and 24 deletions

View File

@@ -3,6 +3,7 @@ package mtwm
import (
"errors"
"fmt"
"github.com/astaxie/beego/server/web"
"math"
"net/url"
"regexp"
@@ -355,6 +356,9 @@ func (c *PurchaseHandler) onOrderMsg(msg *mtwmapi.CallbackMsg) (response *mtwmap
if err == nil {
utils.CallFuncAsync(func() {
if msg.Cmd == mtwmapi.MsgTypeNewOrder {
if order.VendorOrderID == "2301091492659134406" && web.BConfig.RunMode == "jxgy" {
globals.SugarLogger.Debugf("============orderMap %s", utils.Format4Output(orderMap, false))
}
c.OnOrderDetail(orderMap, partner.CreatedPeration)
} else {
c.OnOrderDetail(orderMap, partner.UpdatedPeration)