- ebai the format of order_id of some different msgs are different.
This commit is contained in:
@@ -2,12 +2,18 @@ package ebai
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/ebaiapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
)
|
||||
|
||||
func OnCallbackMsg(msg *ebaiapi.CallbackMsg) (response *ebaiapi.CallbackResponse) {
|
||||
orderID := msg.Body["order_id"].(string)
|
||||
orderID := ""
|
||||
if response.Cmd == ebaiapi.CmdOrderCreate {
|
||||
orderID = msg.Body["order_id"].(string)
|
||||
} else {
|
||||
orderID = utils.Int64ToStr(utils.MustInterface2Int64(msg.Body["order_id"]))
|
||||
}
|
||||
jxutils.CallMsgHandler(func() {
|
||||
switch msg.Cmd {
|
||||
case ebaiapi.CmdOrderCreate, ebaiapi.CmdOrderStatus:
|
||||
|
||||
Reference in New Issue
Block a user