Commit 22715022887a18b426bc02a4bca2fd87efa79bfc
1 parent
b757781b
Exists in
master
and in
3 other branches
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 | }); |