- financial related msg
This commit is contained in:
@@ -17,6 +17,11 @@ func OnCallbackMsg(msg *ebaiapi.CallbackMsg) (response *ebaiapi.CallbackResponse
|
|||||||
response = CurPurchaseHandler.onWaybillMsg(msg)
|
response = CurPurchaseHandler.onWaybillMsg(msg)
|
||||||
}
|
}
|
||||||
}, jxutils.ComposeUniversalOrderID(orderID, model.VendorIDEBAI))
|
}, jxutils.ComposeUniversalOrderID(orderID, model.VendorIDEBAI))
|
||||||
|
if msg.Cmd == ebaiapi.CmdOrderPartRefund || msg.Cmd == ebaiapi.CmdOrderUserCancel {
|
||||||
|
utils.CallFuncAsync(func() {
|
||||||
|
OnFinancialMsg(msg)
|
||||||
|
})
|
||||||
|
}
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
7
business/partner/purchase/ebai/financial.go
Normal file
7
business/partner/purchase/ebai/financial.go
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package ebai
|
||||||
|
|
||||||
|
import "git.rosy.net.cn/baseapi/platformapi/ebaiapi"
|
||||||
|
|
||||||
|
func OnFinancialMsg(msg *ebaiapi.CallbackMsg) (response *ebaiapi.CallbackResponse) {
|
||||||
|
return response
|
||||||
|
}
|
||||||
7
business/partner/purchase/jd/financial.go
Normal file
7
business/partner/purchase/jd/financial.go
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package jd
|
||||||
|
|
||||||
|
import "git.rosy.net.cn/baseapi/platformapi/jdapi"
|
||||||
|
|
||||||
|
func OnFinancialMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
||||||
|
return retVal
|
||||||
|
}
|
||||||
@@ -78,6 +78,8 @@ func OnStoreMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func OnAfterSaleMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
func OnAfterSaleMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
||||||
globals.SugarLogger.Debugf("OnAfterSaleMsg %s", utils.Format4Output(msg, false))
|
utils.CallFuncAsync(func() {
|
||||||
|
OnFinancialMsg(msg)
|
||||||
|
})
|
||||||
return retVal
|
return retVal
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package mtwm
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||||
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
)
|
)
|
||||||
@@ -19,6 +20,11 @@ func OnOrderCallbackMsg(msg *mtwmapi.CallbackMsg) (response *mtwmapi.CallbackRes
|
|||||||
response = curPurchaseHandler.onOrderMsg(msg)
|
response = curPurchaseHandler.onOrderMsg(msg)
|
||||||
}
|
}
|
||||||
}, jxutils.ComposeUniversalOrderID(orderID, model.VendorIDMTWM))
|
}, jxutils.ComposeUniversalOrderID(orderID, model.VendorIDMTWM))
|
||||||
|
if msg.Cmd == mtwmapi.MsgTypeOrderRefund || msg.Cmd == mtwmapi.MsgTypeOrderPartialRefund {
|
||||||
|
utils.CallFuncAsync(func() {
|
||||||
|
OnFinancialMsg(msg)
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
|||||||
7
business/partner/purchase/mtwm/financial.go
Normal file
7
business/partner/purchase/mtwm/financial.go
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package mtwm
|
||||||
|
|
||||||
|
import "git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||||
|
|
||||||
|
func OnFinancialMsg(msg *mtwmapi.CallbackMsg) (response *mtwmapi.CallbackResponse) {
|
||||||
|
return response
|
||||||
|
}
|
||||||
@@ -18,6 +18,9 @@ func (c *EbaiController) Msg() {
|
|||||||
if callbackResponse == nil {
|
if callbackResponse == nil {
|
||||||
callbackResponse = ebai.OnCallbackMsg(obj)
|
callbackResponse = ebai.OnCallbackMsg(obj)
|
||||||
}
|
}
|
||||||
|
if callbackResponse == nil {
|
||||||
|
callbackResponse = api.EbaiAPI.Err2CallbackResponse(obj.Cmd, nil, nil)
|
||||||
|
}
|
||||||
c.Data["json"] = callbackResponse
|
c.Data["json"] = callbackResponse
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user