This commit is contained in:
邹宗楠
2023-11-20 16:52:36 +08:00
parent 7604d29431
commit edb8a5bd54
2 changed files with 5 additions and 11 deletions

View File

@@ -3,8 +3,6 @@ package tao_vegetable
import (
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable"
"git.rosy.net.cn/jx-callback/business/jxutils"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/globals"
"net/http"
"strings"
@@ -13,11 +11,12 @@ import (
// OnCallbackMsg 淘宝回调接口
func OnCallbackMsg(orderStatus, orderId string, msg interface{}) (response *tao_vegetable.CallBackResult) {
if CurPurchaseHandler != nil {
jxutils.CallMsgHandlerAsync(func() {
response = CurPurchaseHandler.onOrderMsg(orderStatus, orderId, msg)
}, jxutils.ComposeUniversalOrderID(orderId, model.VendorIDTaoVegetable))
return CurPurchaseHandler.onOrderMsg(orderStatus, orderId, msg)
//jxutils.CallMsgHandlerAsync(func() {
// response = CurPurchaseHandler.onOrderMsg(orderStatus, orderId, msg)
//}, jxutils.ComposeUniversalOrderID(orderId, model.VendorIDTaoVegetable))
}
return response
return tao_vegetable.CallBackResultInfo(nil)
}
func forwardOrderToGy(msg *mtwmapi.CallbackMsg, orderStatus string) {