@pisell/private-materials 6.3.68 → 6.3.69

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.
Files changed (192) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.js +2 -2
  7. package/build/lowcode/view.js +2 -2
  8. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  9. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  10. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  11. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  12. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  13. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  14. package/es/components/booking/components/footer/amount.d.ts +1 -0
  15. package/es/components/booking/components/footer/amount.js +22 -0
  16. package/es/components/booking/components/footer/utils.js +52 -39
  17. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  18. package/es/components/booking/forms/single/index.d.ts +0 -1
  19. package/es/components/booking/forms/table/index.d.ts +0 -1
  20. package/es/components/booking/hooks/useQuotation.js +32 -6
  21. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  22. package/es/components/booking/info/date/index.d.ts +0 -1
  23. package/es/components/booking/info/notes/index.d.ts +0 -1
  24. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  25. package/es/components/booking/info/service2/Group/utils.js +2 -2
  26. package/es/components/booking/info/service2/utils.js +7 -5
  27. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  28. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  29. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  30. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  31. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  32. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  33. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  34. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  35. package/es/components/eftpos/index.d.ts +0 -1
  36. package/es/components/eftpos/pos.d.ts +0 -1
  37. package/es/components/eftposPay/amount.d.ts +0 -1
  38. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  39. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  40. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  41. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  42. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  43. package/es/components/eftposPay/pay.d.ts +0 -1
  44. package/es/components/eftposPay/payo/config.d.ts +0 -1
  45. package/es/components/eftposPay/tip.d.ts +0 -1
  46. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  47. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  48. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  49. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  50. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  51. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  52. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  53. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  54. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  55. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  56. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  57. package/es/components/login/index.d.ts +0 -1
  58. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +127 -36
  59. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  60. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  61. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  62. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  63. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  64. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  65. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  66. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  67. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  68. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  69. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  70. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  71. package/es/components/schedules/calendar/index.d.ts +0 -1
  72. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  73. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  74. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  75. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  76. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  77. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  78. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  79. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  80. package/es/components/schedules/products/index.d.ts +0 -1
  81. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  82. package/es/components/schedules/products/list/index.d.ts +0 -1
  83. package/es/components/schedules/resources/index.d.ts +0 -1
  84. package/es/components/schedules/resources/list/index.d.ts +0 -1
  85. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  86. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  87. package/es/components/schedules/schedules/index.d.ts +0 -1
  88. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  89. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  90. package/es/components/shoppingCart/index.d.ts +0 -1
  91. package/es/hooks/usePaymentLogger.d.ts +0 -1
  92. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  93. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  94. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  95. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  96. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  97. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  98. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  99. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  100. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  101. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  102. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  103. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  104. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  105. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  106. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  107. package/lib/components/booking/components/footer/amount.js +15 -0
  108. package/lib/components/booking/components/footer/utils.js +20 -8
  109. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  110. package/lib/components/booking/forms/single/index.d.ts +0 -1
  111. package/lib/components/booking/forms/table/index.d.ts +0 -1
  112. package/lib/components/booking/hooks/useQuotation.js +31 -6
  113. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  114. package/lib/components/booking/info/date/index.d.ts +0 -1
  115. package/lib/components/booking/info/notes/index.d.ts +0 -1
  116. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  117. package/lib/components/booking/info/service2/Group/utils.js +2 -2
  118. package/lib/components/booking/info/service2/utils.js +6 -4
  119. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  120. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  121. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  122. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  123. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  124. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  125. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  126. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  127. package/lib/components/eftpos/index.d.ts +0 -1
  128. package/lib/components/eftpos/pos.d.ts +0 -1
  129. package/lib/components/eftposPay/amount.d.ts +0 -1
  130. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  131. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  132. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  133. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  134. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  135. package/lib/components/eftposPay/pay.d.ts +0 -1
  136. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  137. package/lib/components/eftposPay/tip.d.ts +0 -1
  138. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  139. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  140. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  141. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  142. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  143. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  144. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  145. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  146. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  147. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  148. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  149. package/lib/components/login/index.d.ts +0 -1
  150. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +85 -1
  151. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  152. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  153. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  154. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  155. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  156. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  157. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  158. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  159. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  160. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  161. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  162. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  163. package/lib/components/schedules/calendar/index.d.ts +0 -1
  164. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  165. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  166. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  167. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  168. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  169. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  170. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  171. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  172. package/lib/components/schedules/products/index.d.ts +0 -1
  173. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  174. package/lib/components/schedules/products/list/index.d.ts +0 -1
  175. package/lib/components/schedules/resources/index.d.ts +0 -1
  176. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  177. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  178. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  179. package/lib/components/schedules/schedules/index.d.ts +0 -1
  180. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  181. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  182. package/lib/components/shoppingCart/index.d.ts +0 -1
  183. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  184. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  185. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  186. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  187. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  188. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  189. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  190. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  191. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  192. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tip.less';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 按钮操作区
4
3
  * @description: 仅包含签名
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: () => JSX.Element;
3
2
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectHolderModal: (props: any) => JSX.Element;
3
2
  export default SelectHolderModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Resource: (props: any) => JSX.Element;
3
2
  export default Resource;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Schedule: () => JSX.Element;
3
2
  export default Schedule;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface LoginProps {
4
3
  title: string;
@@ -47,6 +47,15 @@ var log = function log(data) {
47
47
  }]
48
48
  });
49
49
  };
50
+ var setHistoryLog = function setHistoryLog(log) {
51
+ if (!paymentData.logList) {
52
+ paymentData.logList = [];
53
+ }
54
+ paymentData.logList.push(log);
55
+ };
56
+ var getCurrentTime = function getCurrentTime() {
57
+ return dayjs().format('YYYY-MM-DD HH:mm:ss');
58
+ };
50
59
 
51
60
  /**
52
61
  * @title: 点击支付
@@ -68,104 +77,169 @@ export var startPayment = /*#__PURE__*/function () {
68
77
  order_id: 0
69
78
  };
70
79
  _context.prev = 2;
71
- paymentData = {};
80
+ paymentData = {
81
+ orderId: orderId,
82
+ logList: []
83
+ };
84
+ setHistoryLog({
85
+ msg: 'startPayment 开始',
86
+ time: getCurrentTime(),
87
+ hasPayData: !!payData,
88
+ payDataOrderId: payData === null || payData === void 0 ? void 0 : payData.order_id,
89
+ payDataPayNumber: payData === null || payData === void 0 ? void 0 : payData.pay_number
90
+ });
91
+
72
92
  // 提交卡信息到后端, 如果有 payData, 则直接使用传入数据
73
93
  if (!payData) {
74
- _context.next = 8;
94
+ _context.next = 9;
75
95
  break;
76
96
  }
77
97
  _context.t0 = payData;
78
- _context.next = 11;
98
+ _context.next = 12;
79
99
  break;
80
- case 8:
81
- _context.next = 10;
100
+ case 9:
101
+ _context.next = 11;
82
102
  return checkEnrollment(orderId, cardInfo, callback);
83
- case 10:
84
- _context.t0 = _context.sent;
85
103
  case 11:
104
+ _context.t0 = _context.sent;
105
+ case 12:
86
106
  step2 = _context.t0;
107
+ setHistoryLog({
108
+ msg: '步骤2完成: 提交卡信息到后端',
109
+ time: getCurrentTime(),
110
+ hasStep2: !!step2
111
+ });
87
112
  if (!(step2 === 0)) {
88
- _context.next = 14;
113
+ _context.next = 16;
89
114
  break;
90
115
  }
91
116
  return _context.abrupt("return");
92
- case 14:
117
+ case 16:
93
118
  paymentData.step2 = step2;
94
119
  paymentInfo.amount = step2.amount;
95
120
  paymentInfo.order_id = step2.order_id;
96
121
  console.log('第三步');
122
+ setHistoryLog({
123
+ msg: '步骤3开始: 创建iframe监听postMessage',
124
+ time: getCurrentTime()
125
+ });
97
126
 
98
127
  // 监听postMessage
99
- _context.next = 20;
128
+ _context.next = 23;
100
129
  return createThreeDSMethodIframe(step2, callback);
101
- case 20:
130
+ case 23:
102
131
  step3 = _context.sent;
103
132
  paymentData.step3 = step3;
133
+ setHistoryLog({
134
+ msg: '步骤3完成: iframe监听结束',
135
+ time: getCurrentTime(),
136
+ step3Result: step3
137
+ });
104
138
  if (!(step3 === 'N')) {
105
- _context.next = 24;
139
+ _context.next = 28;
106
140
  break;
107
141
  }
108
142
  return _context.abrupt("return");
109
- case 24:
110
- _context.next = 26;
143
+ case 28:
144
+ setHistoryLog({
145
+ msg: '步骤4开始: 调用checkTDSAuth',
146
+ time: getCurrentTime(),
147
+ order_id: step2 === null || step2 === void 0 ? void 0 : step2.order_id,
148
+ pay_number: step2 === null || step2 === void 0 ? void 0 : step2.pay_number
149
+ });
150
+
151
+ // 提交token至后端
152
+ _context.next = 31;
111
153
  return checkTDSAuth(step2, step3, callback);
112
- case 26:
154
+ case 31:
113
155
  step4 = _context.sent;
156
+ setHistoryLog({
157
+ msg: '步骤4完成: checkTDSAuth 返回',
158
+ time: getCurrentTime(),
159
+ hasStep4: !!step4
160
+ });
114
161
  if (!(step4 === 0)) {
115
- _context.next = 29;
162
+ _context.next = 35;
116
163
  break;
117
164
  }
118
165
  return _context.abrupt("return");
119
- case 29:
166
+ case 35:
120
167
  paymentData.step4 = step4;
121
168
 
122
169
  // 返回数据执行步骤5, 没有则略过 5&6
123
170
  if (!step4) {
124
- _context.next = 37;
171
+ _context.next = 47;
125
172
  break;
126
173
  }
127
- _context.next = 33;
174
+ setHistoryLog({
175
+ msg: '步骤5开始: 创建challenge iframe',
176
+ time: getCurrentTime()
177
+ });
178
+ _context.next = 40;
128
179
  return createChallengeIframe(step4, callback);
129
- case 33:
180
+ case 40:
130
181
  step5 = _context.sent;
131
182
  paymentData.step5 = step5;
183
+ setHistoryLog({
184
+ msg: '步骤5完成: challenge iframe结束',
185
+ time: getCurrentTime()
186
+ });
187
+ setHistoryLog({
188
+ msg: '步骤6开始: 调用check_pares接口',
189
+ time: getCurrentTime()
190
+ });
132
191
 
133
192
  // 步骤6, 换取token
134
- _context.next = 37;
193
+ _context.next = 46;
135
194
  return checkPARes(step2, step4, step5);
136
- case 37:
195
+ case 46:
196
+ setHistoryLog({
197
+ msg: '步骤6完成: check_pares接口返回',
198
+ time: getCurrentTime()
199
+ });
200
+ case 47:
137
201
  callback({
138
202
  key: 'hideModal'
139
203
  });
204
+ setHistoryLog({
205
+ msg: '支付成功',
206
+ time: getCurrentTime()
207
+ });
208
+
140
209
  // 支付结束
141
210
  paymentEnd(_objectSpread({
142
211
  status: 'success'
143
212
  }, paymentInfo), callback);
144
213
  return _context.abrupt("return", true);
145
- case 42:
146
- _context.prev = 42;
214
+ case 53:
215
+ _context.prev = 53;
147
216
  _context.t1 = _context["catch"](2);
148
217
  console.log('error', _context.t1);
218
+ setHistoryLog({
219
+ msg: '支付异常',
220
+ time: getCurrentTime(),
221
+ error: _context.t1
222
+ });
149
223
  callback({
150
224
  key: 'hideModal'
151
225
  });
152
226
  closeIframe();
153
227
  if (!(_context.t1 === 0)) {
154
- _context.next = 49;
228
+ _context.next = 61;
155
229
  break;
156
230
  }
157
231
  return _context.abrupt("return");
158
- case 49:
232
+ case 61:
159
233
  paymentData.error = _context.t1;
160
234
  paymentEnd(_objectSpread({
161
235
  status: 'fail'
162
236
  }, paymentInfo), callback);
163
237
  return _context.abrupt("return", false);
164
- case 52:
238
+ case 64:
165
239
  case "end":
166
240
  return _context.stop();
167
241
  }
168
- }, _callee, null, [[2, 42]]);
242
+ }, _callee, null, [[2, 53]]);
169
243
  }));
170
244
  return function startPayment(_x, _x2) {
171
245
  return _ref2.apply(this, arguments);
@@ -351,7 +425,13 @@ export var checkTDSAuth = /*#__PURE__*/function () {
351
425
  if (REACT_APP_API_ENV === 'pre' && pay_info.check_tds_auth.card_name === 'aa bb') {
352
426
  isPre = true;
353
427
  }
354
- _context4.next = 8;
428
+ setHistoryLog({
429
+ msg: '步骤4开始: 调用tds_auth_pay接口',
430
+ time: getCurrentTime(),
431
+ order_id: order_id,
432
+ pay_number: pay_number
433
+ });
434
+ _context4.next = 9;
355
435
  return request.getRequest().post('/h5/pay/order/mw-3ds-pay/v2/tds_auth_pay', {
356
436
  order_id: order_id,
357
437
  pay_number: pay_number,
@@ -389,19 +469,30 @@ export var checkTDSAuth = /*#__PURE__*/function () {
389
469
  notifyURL: notifyURL
390
470
  }
391
471
  });
392
- case 8:
472
+ case 9:
393
473
  _yield$request$getReq2 = _context4.sent;
394
474
  data = _yield$request$getReq2.data;
475
+ setHistoryLog({
476
+ msg: '步骤4完成: tds_auth_pay接口返回',
477
+ time: getCurrentTime(),
478
+ hasStep4: !!data
479
+ });
480
+ // 有threeDSToken 则走步骤7 直接支付
395
481
  if (data) {
396
- _context4.next = 12;
482
+ _context4.next = 14;
397
483
  break;
398
484
  }
399
485
  return _context4.abrupt("return", null);
400
- case 12:
486
+ case 14:
401
487
  return _context4.abrupt("return", data);
402
- case 15:
403
- _context4.prev = 15;
488
+ case 17:
489
+ _context4.prev = 17;
404
490
  _context4.t0 = _context4["catch"](0);
491
+ setHistoryLog({
492
+ msg: '步骤4异常',
493
+ time: getCurrentTime()
494
+ });
495
+
405
496
  // 记录卡失败的原因
406
497
  log({
407
498
  msg: _context4.t0,
@@ -418,11 +509,11 @@ export var checkTDSAuth = /*#__PURE__*/function () {
418
509
  }
419
510
  });
420
511
  return _context4.abrupt("return", 0);
421
- case 20:
512
+ case 23:
422
513
  case "end":
423
514
  return _context4.stop();
424
515
  }
425
- }, _callee4, null, [[0, 15]]);
516
+ }, _callee4, null, [[0, 17]]);
426
517
  }));
427
518
  return function checkTDSAuth(_x8, _x9, _x10) {
428
519
  return _ref5.apply(this, arguments);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
3
2
  export default DateSectionCom;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const GenderField: (props: any) => JSX.Element;
3
2
  export default GenderField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddClientProps {
4
3
  onChange: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItemPreview;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface valueType {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
4
3
  export default SelectResourcesTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Calendar: () => JSX.Element;
4
3
  export default Calendar;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScheduleItem } from "../../type";
3
2
  import "./index.less";
4
3
  declare type ScheduleDetailListPropsType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from 'antd';
3
2
  import { ScheduleItem } from '../../type';
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const MaxParticipantsModule: ({ form, value, onChange, useSchedule, isAutoChange, onData, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ResourcesModule: ({ product }: {
3
2
  product: any;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailDrawer: () => JSX.Element;
4
3
  export default ProductDetailDrawer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface ProductListProps {
4
3
  loading: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resources: () => JSX.Element;
4
3
  export default Resources;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ResourcesListProps = {
4
3
  list: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScheduleItem } from '../../type';
3
2
  import './index.less';
4
3
  declare type AllSchedulesPropsType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DrawerProps } from "antd";
3
2
  import { ScheduleItem } from "../../type";
4
3
  import "./index.less";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SchedulesConnect: () => JSX.Element;
3
2
  export default SchedulesConnect;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { shoppingCartProps } from './type';
3
2
  declare const shoppingCart: ({ onCard, onAction, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
4
3
  export default shoppingCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LogData {
3
2
  key: string;
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SCOProps } from '../types';
3
2
  import '../index.less';
4
3
  export declare const Header: (props: SCOProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormInstance } from 'antd';
3
2
  import { SRProps } from '../types';
4
3
  import '../index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormInstance } from 'antd';
3
2
  import { SRProps } from '../types';
4
3
  import '../index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SRProps } from '../types';
3
2
  import '../index.less';
4
3
  declare const GoLogin: (props: SRProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SRProps } from '../types';
3
2
  import '../index.less';
4
3
  export declare const Header: (props: SRProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SRStepStatus } from '../types';
3
2
  import '../index.less';
4
3
  declare const VerifyError: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../index.less';
3
2
  declare const VerifyingEmailLink: (props: {
4
3
  onVerifyLink: () => Promise<void>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: string[] | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
4
3
  export default SelectProductItem;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;