Commit 80bdd248050f542941adaf7e6da5c576309fc1c7

Authored by 宋庆平
1 parent 22715022

X

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
wxsdk/wx/WxPay.ts
@@ -92,7 +92,7 @@ export default class WxPay { @@ -92,7 +92,7 @@ export default class WxPay {
92 private handlePayError(data: { payid: string, goodid: string, money: number; orderid: string, platform: string }, opts, err: any, reject: any) { 92 private handlePayError(data: { payid: string, goodid: string, money: number; orderid: string, platform: string }, opts, err: any, reject: any) {
93 console.log("支付失败", JSON.stringify(err)); 93 console.log("支付失败", JSON.stringify(err));
94 let type = 2; 94 let type = 2;
95 - if (err.code + '' == '-2') { 95 + if (err.errCode + '' == '1') {
96 type = 3; 96 type = 3;
97 } 97 }
98 let extend = ""; 98 let extend = "";