@pisell/pisellos 2.3.142 → 2.3.143
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.
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// 导出评估器
|
|
2
|
-
export { PromotionEvaluator } from "./evaluator";
|
|
3
|
-
|
|
4
|
-
// 导出适配器
|
|
5
|
-
export { PromotionAdapter } from "./adapter";
|
|
6
|
-
export { default } from "./adapter";
|
|
7
|
-
|
|
8
|
-
// 导出策略配置示例常量
|
|
9
|
-
export { X_ITEMS_FOR_Y_PRICE_STRATEGY, BUY_X_GET_Y_FREE_STRATEGY, ITEM_REWARD_STRATEGY } from "./examples";
|
|
@@ -260,7 +260,7 @@ function getResourceMaxFreeTime(resource, isAutoAllocationOn) {
|
|
|
260
260
|
return d.usable && d.id !== 0;
|
|
261
261
|
});
|
|
262
262
|
var defaultResource = [];
|
|
263
|
-
var maxFreeTime =
|
|
263
|
+
var maxFreeTime = -1;
|
|
264
264
|
usableList.forEach(function (d) {
|
|
265
265
|
var _d$times = d.times,
|
|
266
266
|
times = _d$times === void 0 ? [] : _d$times;
|
|
@@ -241,7 +241,7 @@ function getResourceMaxFreeTime(resource, isAutoAllocationOn) {
|
|
|
241
241
|
if (!isAutoAllocationOn(form_id)) return [];
|
|
242
242
|
const usableList = (renderList || []).filter(d => d.usable && d.id !== 0);
|
|
243
243
|
let defaultResource = [];
|
|
244
|
-
let maxFreeTime =
|
|
244
|
+
let maxFreeTime = -1;
|
|
245
245
|
usableList.forEach(d => {
|
|
246
246
|
const {
|
|
247
247
|
times = []
|