- fix bug in GetStoreStockCallbackMsg

This commit is contained in:
gazebo
2018-11-06 18:49:13 +08:00
parent 001389f1cb
commit 9b7df85fba

View File

@@ -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