|
@@ -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 = '';
|