xiongzhu hace 2 años
padre
commit
c628a048c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: {