|
|
@@ -422,8 +422,7 @@ class ShopController extends BaseController {
|
|
|
// 马来币汇率
|
|
|
$exchangeRateMYR = floatval(Cache::getSystemConfig()['exchangeRateMYR']['VALUE'] ?? 0);
|
|
|
// 计算马来币
|
|
|
- $money = intval($money);
|
|
|
- $amount = number_format($money * $exchangeRateMYR, 2, '.', '');
|
|
|
+ $amount = number_format(round($money * $exchangeRateMYR), 2, '.', '');
|
|
|
// $amount = number_format(1, 2, '.', ''); // TODO: 测试
|
|
|
$paymentParams['Amount'] = str_replace('.', '', $amount);
|
|
|
// (Optional) (int)
|