Browse Source

充值订单手续费显示调整

zhangxiaobin 1 year ago
parent
commit
da541d43dc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Money.php

+ 2 - 2
application/api/controller/Money.php

@@ -119,11 +119,11 @@ class Money extends Common
         if ($type == 'wechat') {
             $payType = 1;
             $businessNo = isset($epayConfig['wechat']['mch_id']) ? $epayConfig['wechat']['mch_id'] : '';
-            $serviceFee = $wechatFee;
+            $serviceFee = bcmul($money,$wechatFee,2);
         } elseif ($type == 'alipay') {
             $payType = 2;
             $businessNo = isset($epayConfig['alipay']['app_id']) ? $epayConfig['alipay']['app_id'] : '';
-            $serviceFee = $alipayFee;
+            $serviceFee = bcmul($money,$alipayFee,2);
         } else {
             $payType = 3;
             $businessNo = '';