- fix bug in GetStoreStockCallbackMsg
This commit is contained in:
@@ -149,9 +149,9 @@ func (a *API) GetStoreStockCallbackMsg(data []byte) (msg *CallbackStoreStockMsg,
|
|||||||
msg.Vendibility = int(utils.Str2Int64(utils.Interface2String(tmpMsg["vendibility"])))
|
msg.Vendibility = int(utils.Str2Int64(utils.Interface2String(tmpMsg["vendibility"])))
|
||||||
msg.OperPin = utils.Interface2String(tmpMsg["operPin"])
|
msg.OperPin = utils.Interface2String(tmpMsg["operPin"])
|
||||||
msg.OperTime = utils.Str2Int64(utils.Interface2String(tmpMsg["operTime"]))
|
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"])
|
have := utils.Interface2String(tmpMsg["have"])
|
||||||
if have == "true"{
|
if have == "true" {
|
||||||
msg.Have = true
|
msg.Have = true
|
||||||
} else {
|
} else {
|
||||||
msg.Have = false
|
msg.Have = false
|
||||||
|
|||||||
Reference in New Issue
Block a user