This commit is contained in:
邹宗楠
2024-02-26 14:07:57 +08:00
parent d95fb6c239
commit 76bbee9ae0

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"
@@ -12,13 +10,10 @@ import (
// OnCallbackMsg 淘宝回调接口
func OnCallbackMsg(orderStatus, orderId string, msg interface{}) (response *tao_vegetable.CallBackResult) {
if CurPurchaseHandler != nil {
// return CurPurchaseHandler.onOrderMsg(orderStatus, orderId, msg)
jxutils.CallMsgHandlerAsync(func() {
response = CurPurchaseHandler.onOrderMsg(orderStatus, orderId, msg)
}, jxutils.ComposeUniversalOrderID(orderId, model.VendorIDTaoVegetable))
}
return tao_vegetable.CallBackResultInfo(nil)
//jxutils.CallMsgHandlerAsync(func() {
// response = CurPurchaseHandler.onOrderMsg(orderStatus, orderId, msg)
//}, jxutils.ComposeUniversalOrderID(orderId, model.VendorIDTaoVegetable))
return CurPurchaseHandler.onOrderMsg(orderStatus, orderId, msg)
}
func forwardOrderToGy(msg *mtwmapi.CallbackMsg, orderStatus string) {