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