@pisell/private-materials 6.3.20 → 6.3.22
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +12 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/hooks/useQuotation.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/locales.js +9 -9
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/eftposPay/linkly/hooks/normal.js +2 -2
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +25 -4
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/es/components/ruleSetting/locales.js +2 -2
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +61 -20
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +15 -2
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/locales.js +9 -9
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/eftposPay/linkly/hooks/normal.js +2 -2
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +16 -4
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/lib/components/ruleSetting/locales.js +2 -2
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +43 -8
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/package.json +2 -2
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
addWalletCard: any;
|
4
|
+
}
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
+
walletDetailState: RechargeState;
|
7
|
+
} & {
|
8
|
+
dispatch: (params: {
|
9
|
+
type: string;
|
10
|
+
payload: any;
|
11
|
+
}) => void;
|
12
|
+
}>;
|
13
|
+
export {};
|
@@ -1 +1,14 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
total: number;
|
4
|
+
setup?: 'menu' | 'list' | 'detail' | string;
|
5
|
+
}
|
6
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
7
|
+
state: RechargeState;
|
8
|
+
} & {
|
9
|
+
dispatch: (params: {
|
10
|
+
type: string;
|
11
|
+
payload: any;
|
12
|
+
}) => void;
|
13
|
+
}>;
|
14
|
+
export {};
|
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
total: number;
|
4
|
+
}
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
+
state: RechargeState;
|
7
|
+
} & {
|
8
|
+
dispatch: (params: {
|
9
|
+
type: string;
|
10
|
+
payload: any;
|
11
|
+
}) => void;
|
12
|
+
}>;
|
13
|
+
export {};
|
@@ -1 +1,29 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
selectedGiftOptionId: string | null;
|
4
|
+
cardList: Array<{
|
5
|
+
id: string;
|
6
|
+
name: string;
|
7
|
+
price: number;
|
8
|
+
}>;
|
9
|
+
selectedItem: {
|
10
|
+
id?: string;
|
11
|
+
gift_price?: number;
|
12
|
+
price?: number;
|
13
|
+
name?: string;
|
14
|
+
variant_id?: string;
|
15
|
+
};
|
16
|
+
productId?: string;
|
17
|
+
detailId?: string;
|
18
|
+
total: string | number;
|
19
|
+
rechargeModalOpen: boolean;
|
20
|
+
}
|
21
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
22
|
+
state: RechargeState;
|
23
|
+
} & {
|
24
|
+
dispatch: (params: {
|
25
|
+
type: string;
|
26
|
+
payload: any;
|
27
|
+
}) => void;
|
28
|
+
}>;
|
29
|
+
export {};
|
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
total: 0;
|
4
|
+
}
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
+
state: RechargeState;
|
7
|
+
} & {
|
8
|
+
dispatch: (params: {
|
9
|
+
type: string;
|
10
|
+
payload: any;
|
11
|
+
}) => void;
|
12
|
+
}>;
|
13
|
+
export {};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { IWalletListItemProps } from './serve';
|
2
3
|
export interface WalletCardItemProps {
|
3
4
|
id: string;
|
@@ -26,4 +27,11 @@ export interface WalletListProps {
|
|
26
27
|
currentSearchListItemCode?: string;
|
27
28
|
[key: string]: any;
|
28
29
|
}
|
29
|
-
export declare const Provider: any, Context:
|
30
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
31
|
+
global_wallet: WalletListProps;
|
32
|
+
} & {
|
33
|
+
dispatch: (params: {
|
34
|
+
type: string;
|
35
|
+
payload: any;
|
36
|
+
}) => void;
|
37
|
+
}>;
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from "../model";
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
|
+
state: FormState;
|
5
|
+
} & {
|
6
|
+
dispatch: (params: {
|
7
|
+
type: string;
|
8
|
+
payload: any;
|
9
|
+
}) => void;
|
10
|
+
}>;
|
@@ -273,7 +273,7 @@ var Footer = (props) => {
|
|
273
273
|
type,
|
274
274
|
messageShow = true
|
275
275
|
}) => {
|
276
|
-
var _a2;
|
276
|
+
var _a2, _b2, _c2, _d2, _e2;
|
277
277
|
if ((0, import_utils2.isDayBooking)(state)) {
|
278
278
|
const isHasDayProducts = handleDaySubmit();
|
279
279
|
if (isHasDayProducts) return;
|
@@ -298,7 +298,20 @@ var Footer = (props) => {
|
|
298
298
|
title: "saveBooking",
|
299
299
|
content: [
|
300
300
|
{ key: "下单前数据", value: JSON.stringify(values) },
|
301
|
-
{ key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") }
|
301
|
+
{ key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") },
|
302
|
+
{
|
303
|
+
key: "店铺id",
|
304
|
+
value: (_e2 = (_d2 = (_c2 = (_b2 = store == null ? void 0 : store.getState) == null ? void 0 : _b2.call(store)) == null ? void 0 : _c2.global) == null ? void 0 : _d2.globalConfig) == null ? void 0 : _e2.id
|
305
|
+
},
|
306
|
+
{
|
307
|
+
key: "shopApi",
|
308
|
+
value: JSON.stringify(window == null ? void 0 : window.shopApi, (key, value) => {
|
309
|
+
if (typeof value === "function") {
|
310
|
+
return "function";
|
311
|
+
}
|
312
|
+
return value;
|
313
|
+
})
|
314
|
+
}
|
302
315
|
]
|
303
316
|
});
|
304
317
|
if (addonsEdit) {
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from "../model";
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
|
+
state: FormState;
|
5
|
+
} & {
|
6
|
+
dispatch: (params: {
|
7
|
+
type: string;
|
8
|
+
payload: any;
|
9
|
+
}) => void;
|
10
|
+
}>;
|
@@ -1,5 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from '../model';
|
1
3
|
export declare const walkInData: {
|
2
4
|
id: number;
|
3
5
|
nickname: string;
|
4
6
|
};
|
5
|
-
export declare const Provider: any, Context:
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
8
|
+
state: FormState;
|
9
|
+
} & {
|
10
|
+
dispatch: (params: {
|
11
|
+
type: string;
|
12
|
+
payload: any;
|
13
|
+
}) => void;
|
14
|
+
}>;
|
@@ -134,7 +134,7 @@ var locales_default = {
|
|
134
134
|
const obj = {
|
135
135
|
shop: "Paid from Merchant Portal",
|
136
136
|
"mini-program": "Paid from WeChat Mini-program",
|
137
|
-
pos: "Paid from
|
137
|
+
pos: "Paid from Terminal",
|
138
138
|
PC: "Paid from Website",
|
139
139
|
app: "Paid from APP"
|
140
140
|
};
|
@@ -171,7 +171,7 @@ var locales_default = {
|
|
171
171
|
"pisell2.text.edit-profile": "Edit profile",
|
172
172
|
"pisell2.text.remove-contact": "Remove contact",
|
173
173
|
"pisell2.text.order.sales.channel.online": "Online store",
|
174
|
-
"pisell2.text.order.sales.channel.pos-terminal": "
|
174
|
+
"pisell2.text.order.sales.channel.pos-terminal": "Terminal",
|
175
175
|
"pisell2.text.order.sales.channel.boxcocal": "Boxlocal",
|
176
176
|
"pisell2.text.order.sales.channel.tableorder": "Table order",
|
177
177
|
"pisell2.text.order.sales.channel.reserve": "Google reservation",
|
@@ -215,7 +215,7 @@ var locales_default = {
|
|
215
215
|
"page.booking.text.available": "Available",
|
216
216
|
"page.booking.text.fully-booked": "Fully booked",
|
217
217
|
"page.booking.text.unlimited": "Unlimited",
|
218
|
-
"pisell2.text.terminal-edit-message": "This operation cannot be performed. To proceed, please use the
|
218
|
+
"pisell2.text.terminal-edit-message": "This operation cannot be performed. To proceed, please use the Terminal.",
|
219
219
|
"pisell2.text.actions": "Actions",
|
220
220
|
"pisell2.text.add-client": "Add customer",
|
221
221
|
// 日称tab
|
@@ -449,7 +449,7 @@ var locales_default = {
|
|
449
449
|
const obj = {
|
450
450
|
shop: "在 管理后台 支付",
|
451
451
|
"mini-program": "在 微信小程序 支付",
|
452
|
-
pos: "在
|
452
|
+
pos: "在 终端 支付",
|
453
453
|
PC: "在 网站 支付",
|
454
454
|
app: "在 手机应用程序 支付"
|
455
455
|
};
|
@@ -481,7 +481,7 @@ var locales_default = {
|
|
481
481
|
"pisell2.text.edit-profile": "编辑个人资料",
|
482
482
|
"pisell2.text.remove-contact": "删除联系人",
|
483
483
|
"pisell2.text.order.sales.channel.online": "在线店铺",
|
484
|
-
"pisell2.text.order.sales.channel.pos-terminal": "
|
484
|
+
"pisell2.text.order.sales.channel.pos-terminal": "终端",
|
485
485
|
"pisell2.text.order.sales.channel.boxcocal": "Boxlocal",
|
486
486
|
"pisell2.text.order.sales.channel.tableorder": "扫码点餐",
|
487
487
|
"pisell2.text.order.sales.channel.reserve": "谷歌预约",
|
@@ -516,7 +516,7 @@ var locales_default = {
|
|
516
516
|
"pisell2.text.send-mail": "发送邮件",
|
517
517
|
"pisell2.text.copy-to-clipboard": "复制到剪切板",
|
518
518
|
"pisell2.text.ok": "好的",
|
519
|
-
"pisell2.text.terminal-edit-message": "
|
519
|
+
"pisell2.text.terminal-edit-message": "此操作不可使用,如需使用请至终端设备操作。",
|
520
520
|
"page.booking.text.add-time": "加时",
|
521
521
|
"page.booking.text.quantity": "数量",
|
522
522
|
"page.booking.text.sales": "销售",
|
@@ -759,7 +759,7 @@ var locales_default = {
|
|
759
759
|
const obj = {
|
760
760
|
shop: "在 管理後臺 支付",
|
761
761
|
"mini-program": "在 微信小程序 支付",
|
762
|
-
pos: "在
|
762
|
+
pos: "在 終端 支付",
|
763
763
|
PC: "在 網站 支付",
|
764
764
|
app: "在 手機應用程序 支付"
|
765
765
|
};
|
@@ -791,7 +791,7 @@ var locales_default = {
|
|
791
791
|
"pisell2.text.edit-profile": "編輯個人資料",
|
792
792
|
"pisell2.text.remove-contact": "删除聯系人",
|
793
793
|
"pisell2.text.order.sales.channel.online": "在線店鋪",
|
794
|
-
"pisell2.text.order.sales.channel.pos-terminal": "
|
794
|
+
"pisell2.text.order.sales.channel.pos-terminal": "终端",
|
795
795
|
"pisell2.text.order.sales.channel.boxcocal": "Boxlocal",
|
796
796
|
"pisell2.text.order.sales.channel.tableorder": "掃碼點餐",
|
797
797
|
"pisell2.text.order.sales.channel.reserve": "谷歌預約",
|
@@ -826,7 +826,7 @@ var locales_default = {
|
|
826
826
|
"pisell2.text.send-mail": "發送郵件",
|
827
827
|
"pisell2.text.copy-to-clipboard": "複製到剪切板",
|
828
828
|
"pisell2.text.ok": "好的",
|
829
|
-
"pisell2.text.terminal-edit-message": "
|
829
|
+
"pisell2.text.terminal-edit-message": "此操作不可使用,如需使用請至終端設備操作。",
|
830
830
|
"page.booking.text.add-time": "加時",
|
831
831
|
"page.booking.text.quantity": "數量",
|
832
832
|
"page.booking.text.sales": "銷售",
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
export interface FormState {
|
2
3
|
amountSymbol: string;
|
3
4
|
apis: {
|
@@ -105,4 +106,11 @@ export declare const walkInData: {
|
|
105
106
|
id: number;
|
106
107
|
nickname: string;
|
107
108
|
};
|
108
|
-
export declare const Provider: any, Context:
|
109
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
110
|
+
state: FormState;
|
111
|
+
} & {
|
112
|
+
dispatch: (params: {
|
113
|
+
type: string;
|
114
|
+
payload: any;
|
115
|
+
}) => void;
|
116
|
+
}>;
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from "../model";
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
|
+
state: FormState;
|
5
|
+
} & {
|
6
|
+
dispatch: (params: {
|
7
|
+
type: string;
|
8
|
+
payload: any;
|
9
|
+
}) => void;
|
10
|
+
}>;
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from "../model";
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
|
+
state: FormState;
|
5
|
+
} & {
|
6
|
+
dispatch: (params: {
|
7
|
+
type: string;
|
8
|
+
payload: any;
|
9
|
+
}) => void;
|
10
|
+
}>;
|
@@ -63,7 +63,7 @@ var useLinklyPayOrRefund = (handleCheck) => {
|
|
63
63
|
content: [{ key: "response", value: JSON.stringify(res) }]
|
64
64
|
});
|
65
65
|
const status = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.status;
|
66
|
-
if (status
|
66
|
+
if (status == 0) {
|
67
67
|
numRef.current = (_b = res == null ? void 0 : res.data) == null ? void 0 : _b.session_id;
|
68
68
|
dispatch((0, import_store.updateState)({ number: numRef.current }));
|
69
69
|
dispatch((0, import_store.updateCustom)({ actionStatus: import_const2.LinklyActionStatus.Cancel }));
|
@@ -74,7 +74,7 @@ var useLinklyPayOrRefund = (handleCheck) => {
|
|
74
74
|
return;
|
75
75
|
}
|
76
76
|
dispatch((0, import_store.updateCustom)({ actionStatus: import_const2.LinklyActionStatus.Empty }));
|
77
|
-
if (status
|
77
|
+
if (status == 1) {
|
78
78
|
(_c = handleLinklySuccessRef.current) == null ? void 0 : _c.call(handleLinklySuccessRef, res);
|
79
79
|
return;
|
80
80
|
}
|
@@ -83,13 +83,17 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
83
83
|
_log("Success" /* Success */, result);
|
84
84
|
isQueryFinishedRef.current = true;
|
85
85
|
const data = (result == null ? void 0 : result.data) || {};
|
86
|
-
if (data.status
|
86
|
+
if (data.status == 1) {
|
87
87
|
console.log("交易成功,终止查询");
|
88
|
+
(0, import_utils.sendWarningLog)({
|
89
|
+
title: `Linkly-${isPay ? "Pay" : "Refund"}-交易成功`,
|
90
|
+
content: [{ key: "response", value: JSON.stringify(result) }]
|
91
|
+
});
|
88
92
|
reset();
|
89
93
|
handleLinklySuccess(result);
|
90
94
|
return;
|
91
95
|
}
|
92
|
-
if (data
|
96
|
+
if ((data == null ? void 0 : data.status) == 0 && (data == null ? void 0 : data.signature_flag) != 1) {
|
93
97
|
console.log("交易状态为0需要继续查询");
|
94
98
|
isQueryFinishedRef.current = false;
|
95
99
|
_resultQuery();
|
@@ -97,13 +101,21 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
97
101
|
}
|
98
102
|
if (data.status < 0) {
|
99
103
|
console.log("交易失败,终止查询");
|
104
|
+
(0, import_utils.sendWarningLog)({
|
105
|
+
title: `Linkly-${isPay ? "Pay" : "Refund"}-交易失败`,
|
106
|
+
content: [{ key: "response", value: JSON.stringify(result) }]
|
107
|
+
});
|
100
108
|
reset();
|
101
109
|
result.code = import_const.PayStatus.Unknown;
|
102
110
|
(_a2 = failRef.current) == null ? void 0 : _a2.call(failRef, result, false);
|
103
111
|
return;
|
104
112
|
}
|
105
|
-
if (data.signature_flag
|
113
|
+
if (data.signature_flag == 1) {
|
106
114
|
console.log("交易需要签名,终止查询");
|
115
|
+
(0, import_utils.sendWarningLog)({
|
116
|
+
title: `Linkly-${isPay ? "Pay" : "Refund"}-交易需要签名`,
|
117
|
+
content: [{ key: "response", value: JSON.stringify(result) }]
|
118
|
+
});
|
107
119
|
reset();
|
108
120
|
gotoSignature();
|
109
121
|
return;
|
@@ -194,7 +206,7 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
194
206
|
content.push({ key: "error", value: JSON.stringify(res) });
|
195
207
|
}
|
196
208
|
(0, import_utils.sendWarningLog)({
|
197
|
-
title: `Linkly-${isPay ? "Pay" : "Refund"}
|
209
|
+
title: `Linkly-${isPay ? "Pay" : "Refund"}-交易结果轮询`,
|
198
210
|
content
|
199
211
|
});
|
200
212
|
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
export interface FormState {
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
3
4
|
order: any;
|
@@ -28,4 +29,11 @@ export interface PayGroup {
|
|
28
29
|
pay_number?: string;
|
29
30
|
_order: any;
|
30
31
|
}
|
31
|
-
export declare const Provider: any, Context:
|
32
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
33
|
+
state: FormState;
|
34
|
+
} & {
|
35
|
+
dispatch: (params: {
|
36
|
+
type: string;
|
37
|
+
payload: any;
|
38
|
+
}) => void;
|
39
|
+
}>;
|
@@ -35,7 +35,7 @@ var locales_default = {
|
|
35
35
|
"pisell2.text.rule-setting.sales_channel": "Operation platform",
|
36
36
|
"pisell2.text.rule-setting.staff": "Staff",
|
37
37
|
"pisell2.text.rule-setting.payment_method": "Payment method",
|
38
|
-
"pisell2.text.rule-setting.pisell_terminal_device": "
|
38
|
+
"pisell2.text.rule-setting.pisell_terminal_device": "Terminal device",
|
39
39
|
"pisell2.text.rule-setting.current_device": "Current device"
|
40
40
|
},
|
41
41
|
"zh-CN": {
|
@@ -65,7 +65,7 @@ var locales_default = {
|
|
65
65
|
"pisell2.text.rule-setting.sales_channel": "操作平台",
|
66
66
|
"pisell2.text.rule-setting.staff": "員工",
|
67
67
|
"pisell2.text.rule-setting.payment_method": "支付方式",
|
68
|
-
"pisell2.text.rule-setting.pisell_terminal_device": "
|
68
|
+
"pisell2.text.rule-setting.pisell_terminal_device": "終端",
|
69
69
|
"pisell2.text.rule-setting.current_device": "當前設備"
|
70
70
|
}
|
71
71
|
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
2
3
|
import dayjs from "dayjs";
|
3
4
|
export interface FormState {
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
68
69
|
};
|
69
70
|
setGlobalState: Function | null;
|
70
71
|
}
|
71
|
-
export declare const Provider: any, Context:
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
73
|
+
state: FormState;
|
74
|
+
} & {
|
75
|
+
dispatch: (params: {
|
76
|
+
type: string;
|
77
|
+
payload: any;
|
78
|
+
}) => void;
|
79
|
+
}>;
|