1
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user