This commit is contained in:
邹宗楠
2023-11-20 16:58:17 +08:00
parent edb8a5bd54
commit 8f12a4f753

View File

@@ -3,6 +3,8 @@ 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"
@@ -11,10 +13,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 CurPurchaseHandler.onOrderMsg(orderStatus, orderId, msg)
jxutils.CallMsgHandlerAsync(func() {
response = CurPurchaseHandler.onOrderMsg(orderStatus, orderId, msg)
}, jxutils.ComposeUniversalOrderID(orderId, model.VendorIDTaoVegetable))
}
return tao_vegetable.CallBackResultInfo(nil)
}