aa
This commit is contained in:
@@ -233,6 +233,7 @@ func ChangeUnionOrder(unionOrder *model.UnionOrder, orderStatus *model.UnionOrde
|
|||||||
var (
|
var (
|
||||||
db = dao.GetDB()
|
db = dao.GetDB()
|
||||||
)
|
)
|
||||||
|
globals.SugarLogger.Debugf("ChangeUnionOrder, unionorder:", utils.Format4Output(unionOrder, true))
|
||||||
txDB, _ := dao.Begin(db)
|
txDB, _ := dao.Begin(db)
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"git.rosy.net.cn/jx-callback/globals/api"
|
"git.rosy.net.cn/jx-callback/globals/api"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@@ -240,7 +241,9 @@ func GetUnionOrders() {
|
|||||||
}
|
}
|
||||||
//change
|
//change
|
||||||
jxutils.CallMsgHandler(func() {
|
jxutils.CallMsgHandler(func() {
|
||||||
|
globals.SugarLogger.Debugf("GetUnionOrders pdd, orderstatus: %v", utils.Format4Output(orderStatus, true))
|
||||||
if unionOrderIDsMap[order.OrderSn] != nil {
|
if unionOrderIDsMap[order.OrderSn] != nil {
|
||||||
|
globals.SugarLogger.Debugf("GetUnionOrders pdd, unionorders: %v", utils.Format4Output(unionOrderIDsMap[order.OrderSn], true))
|
||||||
if unionOrderIDsMap[order.OrderSn].Status != orderStatus.Status {
|
if unionOrderIDsMap[order.OrderSn].Status != orderStatus.Status {
|
||||||
cms.ChangeUnionOrder(unionOrderIDsMap[order.OrderSn], orderStatus)
|
cms.ChangeUnionOrder(unionOrderIDsMap[order.OrderSn], orderStatus)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user