27 lines
618 B
Go
27 lines
618 B
Go
package jd
|
|
|
|
import (
|
|
"git.rosy.net.cn/baseapi/platformapi/jdapi"
|
|
)
|
|
|
|
func OnOrderMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
|
if curPurchaseHandler != nil {
|
|
retVal = curPurchaseHandler.OnOrderMsg(msg)
|
|
}
|
|
return retVal
|
|
}
|
|
|
|
func OnWaybillMsg(msg *jdapi.CallbackDeliveryStatusMsg) (retVal *jdapi.CallbackResponse) {
|
|
if curPurchaseHandler != nil {
|
|
retVal = curPurchaseHandler.OnWaybillMsg(msg)
|
|
}
|
|
return retVal
|
|
}
|
|
|
|
func OnStoreMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
|
if curPurchaseHandler != nil {
|
|
retVal = curPurchaseHandler.OnStoreMsg(msg)
|
|
}
|
|
return retVal
|
|
}
|