@pisell/pisellos 2.3.215 → 2.3.216
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.
- package/dist/model/strategy/adapter/promotion/index.js +9 -0
- package/dist/modules/ProductList/index.js +5 -2
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +823 -739
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts +3 -0
- package/dist/solution/UnifiedBookingSales/index.js +84 -69
- package/dist/solution/UnifiedBookingSales/types.d.ts +4 -2
- package/lib/model/strategy/adapter/promotion/index.js +1 -46
- package/lib/modules/ProductList/index.js +4 -1
- package/lib/server/index.d.ts +1 -0
- package/lib/server/index.js +39 -0
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/UnifiedBookingSales/index.d.ts +3 -0
- package/lib/solution/UnifiedBookingSales/index.js +19 -7
- package/lib/solution/UnifiedBookingSales/types.d.ts +4 -2
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
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";
|
|
@@ -416,7 +416,7 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
|
|
|
416
416
|
key: "loadVenueCatalogPool",
|
|
417
417
|
value: (function () {
|
|
418
418
|
var _loadVenueCatalogPool = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
419
|
-
var _this$otherParams5, _params$product_ids, _params$category_ids, _params$extension_typ, _ref4, _data$total;
|
|
419
|
+
var _this$otherParams5, _params$product_ids, _params$category_ids, _params$extension_typ, _ref4, _ref5, _data$total;
|
|
420
420
|
var params,
|
|
421
421
|
channelMap,
|
|
422
422
|
channel,
|
|
@@ -467,6 +467,9 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
|
|
|
467
467
|
} : {}), {}, {
|
|
468
468
|
front_end_cache_id: params.cacheId
|
|
469
469
|
}), {
|
|
470
|
+
// Core dispatches Kiosk to its local product query; PC/H5 without that
|
|
471
|
+
// route keep using HTTP. open_quotation: 0 preserves the raw venue pool.
|
|
472
|
+
osServer: true,
|
|
470
473
|
useCache: false,
|
|
471
474
|
customToast: function customToast() {}
|
|
472
475
|
});
|
|
@@ -481,7 +484,7 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
|
|
|
481
484
|
code: 'VENUE_CATALOG_LOAD_FAILED'
|
|
482
485
|
});
|
|
483
486
|
case 9:
|
|
484
|
-
total = (_ref4 = (_data$total = data.total) !== null && _data$total !== void 0 ? _data$total : data.total_count) !== null && _ref4 !== void 0 ? _ref4 : data.
|
|
487
|
+
total = (_ref4 = (_ref5 = (_data$total = data.total) !== null && _data$total !== void 0 ? _data$total : data.total_count) !== null && _ref5 !== void 0 ? _ref5 : data.total_num) !== null && _ref4 !== void 0 ? _ref4 : data.count;
|
|
485
488
|
if (!(total != null && Number.isFinite(Number(total)) && Number(total) > data.list.length || total == null && data.list.length >= 500)) {
|
|
486
489
|
_context7.next = 12;
|
|
487
490
|
break;
|
package/dist/server/index.d.ts
CHANGED
|
@@ -289,6 +289,7 @@ declare class Server {
|
|
|
289
289
|
* 存储订阅者信息,便于数据变更时推送最新结果
|
|
290
290
|
*/
|
|
291
291
|
private handleProductQuery;
|
|
292
|
+
private queryRawKioskProductPool;
|
|
292
293
|
/**
|
|
293
294
|
* ProductList callers such as standalone retail pages do not always have a selected schedule.
|
|
294
295
|
* In that case query against the current local time so menu availability can still be evaluated.
|