From 9b7df85fba487b3af912c4215ded919fe36746d4 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 6 Nov 2018 18:49:13 +0800 Subject: [PATCH] - fix bug in GetStoreStockCallbackMsg --- platformapi/jdapi/callback.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformapi/jdapi/callback.go b/platformapi/jdapi/callback.go index 303e9d08..a6d88f9b 100644 --- a/platformapi/jdapi/callback.go +++ b/platformapi/jdapi/callback.go @@ -149,9 +149,9 @@ func (a *API) GetStoreStockCallbackMsg(data []byte) (msg *CallbackStoreStockMsg, msg.Vendibility = int(utils.Str2Int64(utils.Interface2String(tmpMsg["vendibility"]))) msg.OperPin = utils.Interface2String(tmpMsg["operPin"]) msg.OperTime = utils.Str2Int64(utils.Interface2String(tmpMsg["operTime"])) - msg.OpenSource = int( utils.Str2Int64((utils.Interface2String(tmpMsg["openSource"]))) + msg.OperSource = int(utils.Str2Int64((utils.Interface2String(tmpMsg["openSource"])))) have := utils.Interface2String(tmpMsg["have"]) - if have == "true"{ + if have == "true" { msg.Have = true } else { msg.Have = false