@uxda/appkit 4.2.38 → 4.2.42
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
|
@@ -1467,7 +1467,7 @@ function useHttp$2(defaultHeader) {
|
|
|
1467
1467
|
const appkitOptions = useAppKitOptions();
|
|
1468
1468
|
const headers = {
|
|
1469
1469
|
Token: appkitOptions.tempToken() || appkitOptions.token(),
|
|
1470
|
-
Appcode: defaultHeader?.Appcode
|
|
1470
|
+
Appcode: defaultHeader?.Appcode !== void 0 ? defaultHeader?.Appcode : appkitOptions.app(),
|
|
1471
1471
|
cookie: `tid=${defaultHeader?.Tenant || appkitOptions.tenant()}`,
|
|
1472
1472
|
gray: appkitOptions.gray ? appkitOptions.gray() : "0"
|
|
1473
1473
|
};
|
|
@@ -1540,7 +1540,7 @@ const requestPayment = (params) => {
|
|
|
1540
1540
|
const requestPaymentByBean = (params) => {
|
|
1541
1541
|
return new Promise((resolve, reject) => {
|
|
1542
1542
|
const $http = useHttp$2({
|
|
1543
|
-
Appcode: params.app !== "cloudkitPro" ? params.app : "",
|
|
1543
|
+
Appcode: params.app !== "cloudkitPro" && params.app !== "aiapprove" ? params.app : "",
|
|
1544
1544
|
Tenant: params.tenant
|
|
1545
1545
|
});
|
|
1546
1546
|
$http.post(endpoints.\u83B7\u53D6\u6743\u76CA\u5FAE\u4FE1\u652F\u4ED8, {
|
|
@@ -1939,9 +1939,9 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
1939
1939
|
return amounts.value[state.selected] && !selectBean.value ? amounts.value[state.selected].paymentAmount : 0;
|
|
1940
1940
|
});
|
|
1941
1941
|
onMounted(() => {
|
|
1942
|
-
const $http = useHttp$2({ Appcode: props.app !== "cloudkitPro" ? props.app : "", Tenant: props.tenant });
|
|
1942
|
+
const $http = useHttp$2({ Appcode: props.app !== "cloudkitPro" && props.app !== "aiapprove" ? props.app : "", Tenant: props.tenant });
|
|
1943
1943
|
$http.get(endpoints.\u83B7\u53D6\u589E\u503C\u6743\u76CA\u7C7B\u76EE, {
|
|
1944
|
-
rightCode: props.app === "
|
|
1944
|
+
rightCode: props.app === "corporateStar" ? "riskQueryCompany" : "riskQueryMulti"
|
|
1945
1945
|
}).then((res) => {
|
|
1946
1946
|
balance.value = res.balance;
|
|
1947
1947
|
amounts.value = res.paymentCaseConfigVOS;
|
|
@@ -1949,7 +1949,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
1949
1949
|
});
|
|
1950
1950
|
const showDialog = ref(false);
|
|
1951
1951
|
async function beanPay() {
|
|
1952
|
-
const $http = useHttp$2({ Appcode: props.app !== "cloudkitPro" ? props.app : "", Tenant: props.tenant });
|
|
1952
|
+
const $http = useHttp$2({ Appcode: props.app !== "cloudkitPro" && props.app !== "aiapprove" ? props.app : "", Tenant: props.tenant });
|
|
1953
1953
|
$http.post(`/payment/paymentCaseConfig/purchase/${amounts.value[state.selected].id}`).then((response) => {
|
|
1954
1954
|
if (response) {
|
|
1955
1955
|
showDialog.value = false;
|
package/package.json
CHANGED
package/src/payment/api/index.ts
CHANGED
|
@@ -63,7 +63,7 @@ function useHttp(defaultHeader?: DefaultHeaderType) {
|
|
|
63
63
|
const appkitOptions = useAppKitOptions()
|
|
64
64
|
const headers = {
|
|
65
65
|
Token: appkitOptions.tempToken() || appkitOptions.token(),
|
|
66
|
-
Appcode: defaultHeader?.Appcode
|
|
66
|
+
Appcode: defaultHeader?.Appcode !== undefined ? defaultHeader?.Appcode : appkitOptions.app(),
|
|
67
67
|
cookie: `tid=${defaultHeader?.Tenant || appkitOptions.tenant()}`,
|
|
68
68
|
gray: appkitOptions.gray ? appkitOptions.gray() : '0',
|
|
69
69
|
}
|
|
@@ -110,9 +110,9 @@ const currentAmount = computed(() => {
|
|
|
110
110
|
})
|
|
111
111
|
|
|
112
112
|
onMounted(() => {
|
|
113
|
-
const $http = useHttp({ Appcode: props.app !== 'cloudkitPro' ? props.app : '', Tenant: props.tenant })
|
|
113
|
+
const $http = useHttp({ Appcode: props.app !== 'cloudkitPro' && props.app !== 'aiapprove' ? props.app : '', Tenant: props.tenant })
|
|
114
114
|
$http.get<any[]>(endpoints.获取增值权益类目, {
|
|
115
|
-
rightCode: props.app === '
|
|
115
|
+
rightCode: props.app === 'corporateStar' ? 'riskQueryCompany' : 'riskQueryMulti',
|
|
116
116
|
}).then((res: any) => {
|
|
117
117
|
balance.value = res.balance
|
|
118
118
|
amounts.value = res.paymentCaseConfigVOS
|
|
@@ -122,7 +122,7 @@ onMounted(() => {
|
|
|
122
122
|
// 云豆支付
|
|
123
123
|
const showDialog = ref<boolean>(false)
|
|
124
124
|
async function beanPay() {
|
|
125
|
-
const $http = useHttp({ Appcode: props.app !== 'cloudkitPro' ? props.app : '', Tenant: props.tenant })
|
|
125
|
+
const $http = useHttp({ Appcode: props.app !== 'cloudkitPro' && props.app !== 'aiapprove' ? props.app : '', Tenant: props.tenant })
|
|
126
126
|
$http.post(`/payment/paymentCaseConfig/purchase/${amounts.value[state.selected].id}`).then((response: any) => {
|
|
127
127
|
if (response) {
|
|
128
128
|
showDialog.value = false
|
|
@@ -30,7 +30,7 @@ const requestPayment = (params: PaymentParams) => {
|
|
|
30
30
|
const requestPaymentByBean = (params: PaymentParams) => {
|
|
31
31
|
return new Promise<boolean>((resolve, reject) => {
|
|
32
32
|
const $http = useHttp({
|
|
33
|
-
Appcode: params.app !== 'cloudkitPro' ? params.app : '',
|
|
33
|
+
Appcode: params.app !== 'cloudkitPro' && params.app !== 'aiapprove' ? params.app : '',
|
|
34
34
|
Tenant: params.tenant,
|
|
35
35
|
})
|
|
36
36
|
$http
|