Merge branch 'feature/alipay-0629-ch' into msb_test

fix/0701-ch
ch 2 years ago
commit 251d091312

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-04-29 14:26:10 * @Date: 2022-04-29 14:26:10
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-29 17:25:38 * @LastEditTime: 2022-06-30 16:03:35
* @Description: file content * @Description: file content
*/ */
@ -19,15 +19,7 @@ export const Alipay = async ({orderId})=>{
const par = result.payDataInfo; const par = result.payDataInfo;
uni.requestPayment({ uni.requestPayment({
provider: 'alipay', provider: 'alipay',
orderInfo :{ orderInfo :par.payData,
"appid": par.appId, // 微信开放平台 - 应用 - AppId
"noncestr": par.nonceStr, // 随机字符串
"package": par.packageValue, // 固定值
"partnerid": par.partnerId, // 微信支付商户号
"prepayid": par.prepayId, // 统一下单订单号
"timestamp": par.timeStamp ,// 时间戳(单位:秒)
"sign": par.sign // 签名,这里用的 MD5 签名
},
success(res) { success(res) {
uni.navigateTo({ uni.navigateTo({
url : `/payResult?orderId=${orderId}&payType=appWx` url : `/payResult?orderId=${orderId}&payType=appWx`

@ -52,6 +52,9 @@
"__platform__" : [ "android" ], "__platform__" : [ "android" ],
"appid" : "wx17b34a4a90ef18f7", "appid" : "wx17b34a4a90ef18f7",
"UniversalLinks" : "" "UniversalLinks" : ""
},
"alipay" : {
"__platform__" : [ "android" ]
} }
} }
}, },

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-04-28 15:01:41 * @Date: 2022-04-28 15:01:41
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-22 14:53:43 * @LastEditTime: 2022-06-30 17:31:15
* @Description: file content * @Description: file content
--> -->
@ -58,7 +58,7 @@ export default {
uni.$u.toast(error.message); uni.$u.toast(error.message);
return false return false
} }
if(!result.isSuccess && this.reuqestNum < 5){ if(!result.isSuccess && this.reuqestNum < 10){
setTimeout(()=>{ setTimeout(()=>{
this.getOrderInfo(); this.getOrderInfo();
}, 1000) }, 1000)

Loading…
Cancel
Save