- 平台门店没有临时休息的概念,ReadStore不会返回临时休息

- 得到平台门店快照后,会刷新本地storeMap中的状态(但store的状态暂时没有更新)
This commit is contained in:
gazebo
2019-06-28 09:47:14 +08:00
parent 3e69149124
commit d87483cff6
5 changed files with 40 additions and 8 deletions

View File

@@ -215,11 +215,11 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
}
func isStoreStatusSame(status1, status2 int) bool {
if status1 == model.StoreStatusClosed {
status1 = model.StoreStatusHaveRest
if status1 == model.StoreStatusHaveRest {
status1 = model.StoreStatusClosed
}
if status2 == model.StoreStatusClosed {
status2 = model.StoreStatusHaveRest
if status2 == model.StoreStatusHaveRest {
status2 = model.StoreStatusClosed
}
return status1 == status2
}
@@ -425,7 +425,7 @@ func (c *PurchaseHandler) onShopMsgPush(msg *ebaiapi.CallbackMsg) (response *eba
if int(utils.ForceInterface2Int64(msg.Body["business_ele"])) == 1 {
storeStatus = model.StoreStatusOpened
} else {
storeStatus = model.StoreStatusHaveRest
storeStatus = model.StoreStatusClosed
}
}
if err == nil {