|
@@ -44,9 +44,10 @@ export default {
|
|
|
methods: {
|
|
|
async initACPUrl() {
|
|
|
try {
|
|
|
- const result = await getACPUrlParams();
|
|
|
- if (result?.params?.signature && result?.params?.encrypt) {
|
|
|
- this.acpUrl = `https://payment.alibaba.com/home.html?from=suhaotong&&signature=${result.params.signature}&platformParam=${result.params.encrypt}`;
|
|
|
+ const response = await getACPUrlParams();
|
|
|
+ if (response?.success && Array.isArray(response.result) && response.result.length >= 2) {
|
|
|
+ const [signature, encrypt] = response.result;
|
|
|
+ this.acpUrl = `https://payment.alibaba.com/home.html?from=suhaotong&&signature=${signature}&platformParam=${encrypt}`;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
if (error?.response?.status !== 500) {
|