京东商城订单初接入
This commit is contained in:
35
business/partner/purchase/jdshop/callback.go
Normal file
35
business/partner/purchase/jdshop/callback.go
Normal file
@@ -0,0 +1,35 @@
|
||||
package jdshop
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/jdshopapi"
|
||||
)
|
||||
|
||||
func OnCallbackMsg(msg *jdshopapi.CallBackResult) {
|
||||
fmt.Println("testcallback")
|
||||
// if CurPurchaseHandler != nil {
|
||||
// if msg.Cmd == mtwmapi.MsgTypeStoreStatusChanged {
|
||||
// response = CurPurchaseHandler.onStoreStatusChanged(msg)
|
||||
// } else if msg.Cmd == mtwmapi.MsgTypePrivateNumberDowngrade {
|
||||
// response = CurPurchaseHandler.onNumberDowngrade(msg)
|
||||
// } else {
|
||||
// if orderID := GetOrderIDFromMsg(msg); orderID != "" {
|
||||
// jxutils.CallMsgHandler(func() {
|
||||
// switch msg.Cmd {
|
||||
// case mtwmapi.MsgTypeWaybillStatus:
|
||||
// response = CurPurchaseHandler.onWaybillMsg(msg)
|
||||
// default:
|
||||
// response = CurPurchaseHandler.onOrderMsg(msg)
|
||||
// }
|
||||
// }, jxutils.ComposeUniversalOrderID(orderID, model.VendorIDMTWM))
|
||||
// }
|
||||
// /*if msg.Cmd == mtwmapi.MsgTypeOrderRefund || msg.Cmd == mtwmapi.MsgTypeOrderPartialRefund {
|
||||
// utils.CallFuncAsync(func() {
|
||||
// OnFinancialMsg(msg)
|
||||
// })
|
||||
// } */
|
||||
// }
|
||||
// }
|
||||
// return response
|
||||
}
|
||||
Reference in New Issue
Block a user