@pisell/pisellos 2.0.59 → 2.0.60

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.
@@ -37,6 +37,9 @@ function _updateAllCartItemPrice() {
37
37
  case 4:
38
38
  cartProduct = _context.sent;
39
39
  productInfo = cartProduct === null || cartProduct === void 0 ? void 0 : cartProduct.getData();
40
+ if (!productInfo) {
41
+ productInfo = item._productOrigin;
42
+ }
40
43
  bundle = item._bundleOrigin;
41
44
  productInfo.price = targetProduct === null || targetProduct === void 0 ? void 0 : targetProduct.price;
42
45
  productInfo.base_price = targetProduct === null || targetProduct === void 0 ? void 0 : targetProduct.base_price;
@@ -90,7 +93,7 @@ function _updateAllCartItemPrice() {
90
93
  bundle: bundle,
91
94
  options: item._optionsOrigin
92
95
  });
93
- case 14:
96
+ case 15:
94
97
  case "end":
95
98
  return _context.stop();
96
99
  }
@@ -40,7 +40,10 @@ async function updateAllCartItemPrice(cartItems, priceData, getProduct, updateCa
40
40
  const cartProduct = await getProduct(
41
41
  item.id
42
42
  );
43
- const productInfo = cartProduct == null ? void 0 : cartProduct.getData();
43
+ let productInfo = cartProduct == null ? void 0 : cartProduct.getData();
44
+ if (!productInfo) {
45
+ productInfo = item._productOrigin;
46
+ }
44
47
  let bundle = item._bundleOrigin;
45
48
  productInfo.price = targetProduct == null ? void 0 : targetProduct.price;
46
49
  productInfo.base_price = targetProduct == null ? void 0 : targetProduct.base_price;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.0.59",
4
+ "version": "2.0.60",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",