- 修复打印,发送新订单消息触发位置的错误
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/netprinter"
|
||||
"git.rosy.net.cn/jx-callback/business/msghub"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxcallback/scheduler"
|
||||
@@ -150,12 +151,13 @@ func init() {
|
||||
err = err2
|
||||
}
|
||||
}
|
||||
if isAcceptIt {
|
||||
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order)
|
||||
utils.CallFuncAsync(func() {
|
||||
weixinmsg.NotifyNewOrder(order)
|
||||
})
|
||||
}
|
||||
}
|
||||
if isAcceptIt {
|
||||
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order)
|
||||
utils.CallFuncAsync(func() {
|
||||
weixinmsg.NotifyNewOrder(order)
|
||||
})
|
||||
msghub.OnNewOrder(order)
|
||||
}
|
||||
return err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user