This commit is contained in:
gazebo
2019-10-10 09:44:31 +08:00
parent c237c4957c
commit c8f702a861

View File

@@ -746,7 +746,7 @@ func EnableHaveRestStores(ctx *jxcontext.Context, isAsync, isContinueWhenError b
if store.AutoEnableAt != nil {
autoEnableAt = *store.AutoEnableAt
} else {
autoEnableAt = utils.Time2Date(time.Now().Add(24 * time.Hour)) // 临时休息,但没有设置恢复营业时间,缺省是第二天
autoEnableAt = utils.Time2Date(time.Now().Add(12 * time.Hour)) // 临时休息,但没有设置恢复营业时间,缺省是第二天
}
if time.Now().Sub(autoEnableAt) >= -2*time.Hour {
err = SetStoreStatus(ctx, store.ID, model.StoreStatusOpened)