|
|
@@ -422,12 +422,12 @@ class ShopController extends BaseController {
|
|
|
// 马来币汇率
|
|
|
$exchangeRateMYR = floatval(Cache::getSystemConfig()['exchangeRateMYR']['VALUE'] ?? 0);
|
|
|
// 计算马来币
|
|
|
-// $amount = number_format(round($money * $exchangeRateMYR), 2, '.', '');
|
|
|
- $amount = number_format($money, 2, '.', '');
|
|
|
+ $amount = number_format(round($money * $exchangeRateMYR), 2, '.', '');
|
|
|
+// $amount = number_format($money, 2, '.', '');
|
|
|
// $amount = number_format(1, 2, '.', ''); // TODO: 测试
|
|
|
$paymentParams['Amount'] = str_replace('.', '', $amount);
|
|
|
// (Optional) (int)
|
|
|
- $paymentParams['PaymentId'] = ''; // 2=信用卡 182=银联
|
|
|
+ $paymentParams['PaymentId'] = '182'; // 2=信用卡 182=银联
|
|
|
// Product description. (length 100)
|
|
|
$paymentParams['ProdDesc'] = 'Pay for sales';
|
|
|
// Customer name. (length 100)
|