From 2ffb32cb51f0c1f0336652250ab7c32b839bf3b4 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 15 Oct 2018 11:03:00 +0800 Subject: [PATCH] - fk. --- business/partner/purchase/ebai/callback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/partner/purchase/ebai/callback.go b/business/partner/purchase/ebai/callback.go index 0b8d4afc8..dbc487709 100644 --- a/business/partner/purchase/ebai/callback.go +++ b/business/partner/purchase/ebai/callback.go @@ -9,7 +9,7 @@ import ( func OnCallbackMsg(msg *ebaiapi.CallbackMsg) (response *ebaiapi.CallbackResponse) { orderID := "" - if response.Cmd == ebaiapi.CmdOrderCreate { + if msg.Cmd == ebaiapi.CmdOrderCreate { orderID = msg.Body["order_id"].(string) } else { orderID = utils.Int64ToStr(utils.MustInterface2Int64(msg.Body["order_id"]))