diff --git a/pages/API/request-payment/request-payment.uvue b/pages/API/request-payment/request-payment.uvue index 69994c9f195a4a2149769f3f30b2a435f6e3035d..dd7ba0e258e6b4d8539e9697b62257016cd856a9 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: {