xiongzhu пре 2 година
родитељ
комит
c628a048c4
1 измењених фајлова са 1 додато и 1 уклоњено
  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: {