@pisell/private-materials 6.4.10 → 6.4.11

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.
@@ -1672,7 +1672,6 @@ var PaymentModal = function PaymentModal(_ref17) {
1672
1672
  console.log('print_order_onOrderSynced>>>>', responseData);
1673
1673
  try {
1674
1674
  var _responseData$payment3;
1675
- debugger;
1676
1675
  var params = {
1677
1676
  type: '99',
1678
1677
  // 打印订单全部信息
@@ -1768,13 +1767,15 @@ var PaymentModal = function PaymentModal(_ref17) {
1768
1767
  if (data && open) {
1769
1768
  initCheckoutData();
1770
1769
  }
1770
+ }, [data, open]);
1771
+ useEffect(function () {
1771
1772
  return function () {
1772
1773
  if (typeof unsubscribeRef.current === 'function') {
1773
1774
  var _unsubscribeRef$curre;
1774
1775
  (_unsubscribeRef$curre = unsubscribeRef.current) === null || _unsubscribeRef$curre === void 0 || _unsubscribeRef$curre.call(unsubscribeRef);
1775
1776
  }
1776
1777
  };
1777
- }, [data, open]);
1778
+ }, []);
1778
1779
 
1779
1780
  // 创建PaymentResultToast配置对象
1780
1781
  var paymentResultToastConfig = {
@@ -1242,7 +1242,6 @@ var PaymentModal = ({
1242
1242
  if (paymentStatus) {
1243
1243
  console.log("print_order_onOrderSynced>>>>", responseData);
1244
1244
  try {
1245
- debugger;
1246
1245
  const params = {
1247
1246
  type: "99",
1248
1247
  // 打印订单全部信息
@@ -1315,13 +1314,15 @@ var PaymentModal = ({
1315
1314
  if (data && open) {
1316
1315
  initCheckoutData();
1317
1316
  }
1317
+ }, [data, open]);
1318
+ (0, import_react.useEffect)(() => {
1318
1319
  return () => {
1319
1320
  var _a2;
1320
1321
  if (typeof unsubscribeRef.current === "function") {
1321
1322
  (_a2 = unsubscribeRef.current) == null ? void 0 : _a2.call(unsubscribeRef);
1322
1323
  }
1323
1324
  };
1324
- }, [data, open]);
1325
+ }, []);
1325
1326
  const paymentResultToastConfig = {
1326
1327
  context,
1327
1328
  pisellos,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.4.10",
3
+ "version": "6.4.11",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",