@uxda/appkit 4.2.64 → 4.2.66
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/dist/index.js
CHANGED
|
@@ -411,8 +411,14 @@ function generateUniqueId(pre) {
|
|
|
411
411
|
function useLogger(options) {
|
|
412
412
|
const appkitOptions = useAppKitOptions();
|
|
413
413
|
const url = appkitOptions.baseUrl();
|
|
414
|
-
if (
|
|
415
|
-
|
|
414
|
+
if (Taro.getEnv() === "WEB") {
|
|
415
|
+
if (location.origin.includes("ytech.ddjf.com")) {
|
|
416
|
+
defaultLogOptions.projectName = "ddyk-prod";
|
|
417
|
+
}
|
|
418
|
+
} else {
|
|
419
|
+
if (url.includes("ytech.ddjf.com")) {
|
|
420
|
+
defaultLogOptions.projectName = "ddyk-prod";
|
|
421
|
+
}
|
|
416
422
|
}
|
|
417
423
|
if (options) {
|
|
418
424
|
options = Object.assign(defaultLogOptions, options);
|
|
@@ -1478,7 +1484,10 @@ const endpointsList$2 = {
|
|
|
1478
1484
|
appCode: params.app,
|
|
1479
1485
|
tenantId: params.tenant,
|
|
1480
1486
|
amount: params.amount,
|
|
1481
|
-
certificateNo: params.user
|
|
1487
|
+
certificateNo: params.user,
|
|
1488
|
+
accountAuthFlag: params.accountAuthFlag || false,
|
|
1489
|
+
channelCode: params.channelCode || null,
|
|
1490
|
+
payFinishJumpUrl: params.payFinishJumpUrl || null
|
|
1482
1491
|
}),
|
|
1483
1492
|
transform: (data) => {
|
|
1484
1493
|
let json = null;
|
package/package.json
CHANGED
|
@@ -55,6 +55,9 @@ const endpointsList: HttpEndpoints = {
|
|
|
55
55
|
tenantId: params.tenant,
|
|
56
56
|
amount: params.amount,
|
|
57
57
|
certificateNo: params.user,
|
|
58
|
+
accountAuthFlag: params.accountAuthFlag || false,
|
|
59
|
+
channelCode: params.channelCode || null,
|
|
60
|
+
payFinishJumpUrl: params.payFinishJumpUrl || null,
|
|
58
61
|
}),
|
|
59
62
|
transform: (data: any) => {
|
|
60
63
|
let json = null
|
|
@@ -32,9 +32,16 @@ export function useLogger(options?: LogType) {
|
|
|
32
32
|
const appkitOptions = useAppKitOptions()
|
|
33
33
|
const url = appkitOptions.baseUrl()
|
|
34
34
|
|
|
35
|
-
if (
|
|
36
|
-
|
|
35
|
+
if (Taro.getEnv() === 'WEB') {
|
|
36
|
+
if (location.origin.includes('ytech.ddjf.com')) {
|
|
37
|
+
defaultLogOptions.projectName = 'ddyk-prod'
|
|
38
|
+
}
|
|
39
|
+
} else {
|
|
40
|
+
if (url.includes('ytech.ddjf.com')) {
|
|
41
|
+
defaultLogOptions.projectName = 'ddyk-prod'
|
|
42
|
+
}
|
|
37
43
|
}
|
|
44
|
+
|
|
38
45
|
if (options) {
|
|
39
46
|
options = Object.assign(defaultLogOptions, options)
|
|
40
47
|
} else {
|