From f3e1666e345fb90248e2fe913538867afbbb3c95 Mon Sep 17 00:00:00 2001 From: WOSHIMAHAIFENG Date: Mon, 22 Apr 2024 16:52:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=AF=E4=BB=98=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E8=AE=A2=E5=8D=95=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/request-payment/request-payment.uvue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/API/request-payment/request-payment.uvue b/pages/API/request-payment/request-payment.uvue index 69994c9f..dd7ba0e2 100644 --- a/pages/API/request-payment/request-payment.uvue +++ b/pages/API/request-payment/request-payment.uvue @@ -102,9 +102,13 @@ uni.showLoading({ title: "请求中..." }) - + let url = 'https://demo.dcloud.net.cn/payment/wxpayv3.__UNI__uniappx/?total=1' + const res = uni.getAppBaseInfo(); + if (res.packageName == 'io.dcloud.hellouniappx') {//hello uniappx + url = 'https://demo.dcloud.net.cn/payment/wxpayv3.__UNI__HelloUniAppX/?total=1' + } uni.request({ - url: 'https://demo.dcloud.net.cn/payment/wxpayv3.__UNI__uniappx/?total=1', + url: url, method: 'GET', timeout: 6000, header: { -- GitLab