xiongzhu 2 anni fa
parent
commit
c628a048c4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/weixin/weixin.service.ts

+ 1 - 1
src/weixin/weixin.service.ts

@@ -159,7 +159,7 @@ export class WeixinService {
             out_trade_no: Kits.generateStr(),
             notify_url: this.weixinConfiguration.notifyUrl,
             amount: {
-                total: realAmount.times(new BigNumber(100)).toFixed(0),
+                total: parseInt(realAmount.times(new BigNumber(100)).toFixed(0)),
                 currency: 'CNY'
             },
             payer: {