Commit 22715022887a18b426bc02a4bca2fd87efa79bfc

Authored by 宋庆平
1 parent b757781b

X

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
wxsdk/wx/WxPay.ts
@@ -48,6 +48,8 @@ export default class WxPay { @@ -48,6 +48,8 @@ export default class WxPay {
48 WxApi.I.requestMidasPayment(pms) 48 WxApi.I.requestMidasPayment(pms)
49 .then(() => this.handlePaySuccess({ ...params, platform }, opts, resolve, reject)) 49 .then(() => this.handlePaySuccess({ ...params, platform }, opts, resolve, reject))
50 .catch(err => this.handlePayError({ ...params, platform }, opts, err, reject)); 50 .catch(err => this.handlePayError({ ...params, platform }, opts, err, reject));
  51 + }else{
  52 + reject(res);
51 } 53 }
52 }) 54 })
53 }); 55 });