@pisell/pisellos 2.2.4 → 2.2.5

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.
@@ -222,6 +222,8 @@ export var ProductsModule = /*#__PURE__*/function (_BaseModule) {
222
222
  return this.loadProductsPrice({
223
223
  ids: allProducts.map(function (product) {
224
224
  return product.id;
225
+ }).sort(function (a, b) {
226
+ return a - b;
225
227
  }),
226
228
  schedule_date: schedule_date
227
229
  });
@@ -129,7 +129,7 @@ var ProductsModule = class extends import_BaseModule.BaseModule {
129
129
  const allProducts = await this.getProducts();
130
130
  console.log(`[ProductsModule] 🌐 开始获取商品报价单价格`);
131
131
  const priceData = await this.loadProductsPrice({
132
- ids: allProducts.map((product) => product.id),
132
+ ids: allProducts.map((product) => product.id).sort((a, b) => a - b),
133
133
  schedule_date
134
134
  });
135
135
  console.log(`[ProductsModule] 🌐 获取商品报价单价格成功`, priceData);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.4",
4
+ "version": "2.2.5",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",