提交 f3e1666e 编写于 作者: W WOSHIMAHAIFENG

修改支付获取订单地址

上级 abb69400
...@@ -102,9 +102,13 @@ ...@@ -102,9 +102,13 @@
uni.showLoading({ uni.showLoading({
title: "请求中..." 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({ uni.request({
url: 'https://demo.dcloud.net.cn/payment/wxpayv3.__UNI__uniappx/?total=1', url: url,
method: 'GET', method: 'GET',
timeout: 6000, timeout: 6000,
header: { header: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册