up
This commit is contained in:
@@ -746,7 +746,7 @@ func EnableHaveRestStores(ctx *jxcontext.Context, isAsync, isContinueWhenError b
|
|||||||
if store.AutoEnableAt != nil {
|
if store.AutoEnableAt != nil {
|
||||||
autoEnableAt = *store.AutoEnableAt
|
autoEnableAt = *store.AutoEnableAt
|
||||||
} else {
|
} 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 {
|
if time.Now().Sub(autoEnableAt) >= -2*time.Hour {
|
||||||
err = SetStoreStatus(ctx, store.ID, model.StoreStatusOpened)
|
err = SetStoreStatus(ctx, store.ID, model.StoreStatusOpened)
|
||||||
|
|||||||
Reference in New Issue
Block a user