@pisell/pisellos 0.0.171 → 0.0.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2809,7 +2809,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2809
2809
|
});
|
|
2810
2810
|
|
|
2811
2811
|
// 如果 firstAvailableDate 距离 startDate 大于 14 天了,则后面就不需要再找了,也是一种性能保护
|
|
2812
|
-
if (!(firstAvailableDate && dayjs(currentDate).diff(dayjs(startDate), 'day') >
|
|
2812
|
+
if (!(firstAvailableDate && dayjs(currentDate).diff(dayjs(startDate), 'day') > 31)) {
|
|
2813
2813
|
_context28.next = 9;
|
|
2814
2814
|
break;
|
|
2815
2815
|
}
|
|
@@ -2010,7 +2010,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
2010
2010
|
weekNum: (0, import_dayjs.default)(currentDate).day(),
|
|
2011
2011
|
status
|
|
2012
2012
|
});
|
|
2013
|
-
if (firstAvailableDate && (0, import_dayjs.default)(currentDate).diff((0, import_dayjs.default)(startDate), "day") >
|
|
2013
|
+
if (firstAvailableDate && (0, import_dayjs.default)(currentDate).diff((0, import_dayjs.default)(startDate), "day") > 31) {
|
|
2014
2014
|
break;
|
|
2015
2015
|
}
|
|
2016
2016
|
currentDate = (0, import_dayjs.default)(currentDate).add(1, "day");
|