diff --git a/pages/API/get-location/get-location.uvue b/pages/API/get-location/get-location.uvue index cfba499f4344691b11c518ce39d811ac065af30c..6fcc96831df07ee6cc4ef0d7d82ee29d34e0aa82 100644 --- a/pages/API/get-location/get-location.uvue +++ b/pages/API/get-location/get-location.uvue @@ -143,7 +143,12 @@ } }, getLocationTap: function () { - if (this.providerList.length == 0) { + if (this.providerList.length == 0) { + uni.showToast({ + title: '未获取到provider,请确定基座中包含location功能', + icon: "error" + }) + console.log("未获取到provider,请确定基座中包含location功能") return } uni.showLoading({ diff --git a/pages/API/virtual-payment/virtual-payment.uvue b/pages/API/virtual-payment/virtual-payment.uvue index f0fad8648c0656bf34ca38453a11b576bd40966b..b20cc6deef860b3c920c43ca11b052e02a13d171 100644 --- a/pages/API/virtual-payment/virtual-payment.uvue +++ b/pages/API/virtual-payment/virtual-payment.uvue @@ -54,15 +54,15 @@ methods: { initProductList() { this.productList.push({ - name: '消耗性产品:个人赞助1元, 数量=5', + name: '消耗性产品:个人赞助1元', id: this.isDebug() ? "uniappx.consumable.sponsor_1" : "uniappx.consumable.sponsor1", - quantity: 5 + quantity: 1 } as PayItem); this.productList.push({ - name: '消耗性产品:金牌赞助50元', + name: '消耗性产品:金牌赞助5元, 数量=2', id: this.isDebug() ? "uniappx.consumable.sponsor_50" : "uniappx.consumable.sponsor50", - quantity: 1 + quantity: 2 } as PayItem); this.productList.push({ @@ -123,10 +123,11 @@ mask: true }); - uni.requestVirtualPayment({ + uni.requestVirtualPayment({ + //需要将orderId转换为如下符合UUID规则的字符串,然后赋值给参数appAccountToken, 传入不符合UUID规则的字符串无效 apple: { productId: e.id, - appAccountToken: "orderId+accountId", + appAccountToken: "123eaaaa-e89b-12d3-a456-42661417400b", quantity: e.quantity ?? 1, }, success: (res) => {