- all ebai order msg order_id is tring

- if store_id of ebai order larger than math.MaxInt32, set it to zero
This commit is contained in:
gazebo
2018-11-13 15:53:43 +08:00
parent b175895f8d
commit f316fd4c1f
2 changed files with 5 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ import (
func OnCallbackMsg(msg *ebaiapi.CallbackMsg) (response *ebaiapi.CallbackResponse) {
orderID := ""
if msg.Cmd == ebaiapi.CmdOrderCreate {
if true { //msg.Cmd == ebaiapi.CmdOrderCreate { // 与测试时情况不一样好像线上全改成string了
orderID = msg.Body["order_id"].(string)
} else {
orderID = utils.Int64ToStr(utils.MustInterface2Int64(msg.Body["order_id"]))