@pisell/private-materials 6.11.115 → 6.11.116

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.
@@ -62,9 +62,9 @@ function stopUiClick(e) {
62
62
  * 宿主 action / NativePage 用的订单主键:优先 `order.id`,否则顶层 `order_id`。
63
63
  */
64
64
  function resolveOrderIdForHostActions(bookingRaw) {
65
- var _order$id;
65
+ var _ref, _order$id;
66
66
  var order = bookingRaw.order;
67
- var id = (_order$id = order === null || order === void 0 ? void 0 : order.id) !== null && _order$id !== void 0 ? _order$id : bookingRaw.order_id;
67
+ var id = (_ref = (_order$id = order === null || order === void 0 ? void 0 : order.id) !== null && _order$id !== void 0 ? _order$id : order === null || order === void 0 ? void 0 : order.order_id) !== null && _ref !== void 0 ? _ref : bookingRaw.order_id;
68
68
  if (id == null || id === '') return undefined;
69
69
  if (typeof id === 'number' && Number.isFinite(id)) return id;
70
70
  var s = String(id).trim();
@@ -137,9 +137,9 @@ export function ReservationBookingDetailModal(props) {
137
137
  var _engineContext$appHel;
138
138
  stopUiClick(e);
139
139
  if (!raw) return;
140
- var _ref = ((_engineContext$appHel = engineContext.appHelper) === null || _engineContext$appHel === void 0 ? void 0 : _engineContext$appHel.utils) || {},
141
- action = _ref.action,
142
- NativePage = _ref.NativePage;
140
+ var _ref2 = ((_engineContext$appHel = engineContext.appHelper) === null || _engineContext$appHel === void 0 ? void 0 : _engineContext$appHel.utils) || {},
141
+ action = _ref2.action,
142
+ NativePage = _ref2.NativePage;
143
143
  var orderId = resolveOrderIdForHostActions(raw);
144
144
  console.log('key', key, orderId);
145
145
  switch (key) {
@@ -70,7 +70,7 @@ function stopUiClick(e) {
70
70
  }
71
71
  function resolveOrderIdForHostActions(bookingRaw) {
72
72
  const order = bookingRaw.order;
73
- const id = (order == null ? void 0 : order.id) ?? bookingRaw.order_id;
73
+ const id = (order == null ? void 0 : order.id) ?? (order == null ? void 0 : order.order_id) ?? bookingRaw.order_id;
74
74
  if (id == null || id === "") return void 0;
75
75
  if (typeof id === "number" && Number.isFinite(id)) return id;
76
76
  const s = String(id).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.11.115",
3
+ "version": "6.11.116",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -68,7 +68,7 @@
68
68
  "react-resizable": "^3.0.5",
69
69
  "styled-components": "^6.0.0-rc.3",
70
70
  "@pisell/utils": "3.0.2",
71
- "@pisell/materials": "6.11.27",
71
+ "@pisell/materials": "6.11.28",
72
72
  "@pisell/icon": "0.0.11",
73
73
  "@pisell/date-picker": "3.0.8"
74
74
  },