From 5ad8024c8dcd0d27d4e30e489d0410ae14cda060 Mon Sep 17 00:00:00 2001 From: Todking Date: Sun, 26 Sep 2021 18:20:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20aps=E5=95=86=E6=88=B7=E8=B4=B9=E7=8E=87?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/impls/ClientManagerImpl.java | 7 +++- .../organizations/templates/org_detail.html | 4 +- .../templates/org_detail_parent.html | 4 +- .../templates/partner_bankaccounts.html | 40 +++++++++---------- .../partner/templates/rate_config_dialog.html | 8 ++-- 5 files changed, 33 insertions(+), 30 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java index 8235414a4..57ad85576 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java @@ -2096,8 +2096,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid if (newConfig.getBigDecimal("cb_bankpay_rate_value") != null) { clientRateMapper.saveRate(newConfig); } - } else if ("AlipayAps".equalsIgnoreCase(channel)) { - newConfig.put("transaction_fee", newConfig.getFloatValue("service_fee_value")); + } else if ("ApsInStore".equalsIgnoreCase(channel)) { + newConfig.put("transaction_fee", newConfig.getFloatValue("retail_service_fee_value")); + clientRateMapper.saveRate(newConfig); + } else if ("ApsCashier".equalsIgnoreCase(channel)) { + newConfig.put("transaction_fee", newConfig.getFloatValue("online_service_fee_value")); clientRateMapper.saveRate(newConfig); } else { clientRateMapper.saveRate(newConfig); diff --git a/src/main/ui/static/config/organizations/templates/org_detail.html b/src/main/ui/static/config/organizations/templates/org_detail.html index 346fe2832..1de510682 100644 --- a/src/main/ui/static/config/organizations/templates/org_detail.html +++ b/src/main/ui/static/config/organizations/templates/org_detail.html @@ -182,7 +182,7 @@
-
China Wallet
+
China Wallets Rate
-
A+ Rate
+
Alipay+ Rate
-
China Wallet
+
China Wallets Rate
-
A+ Rate
+
Alipay+ Rate
-
-

China Wallet

+
+

China Wallets Rate

+ + Add Rate +
@@ -266,11 +271,6 @@ ng-click="bankCtrl.rate_name='CB_BankPay'" ng-if="sysconfig.active_channels.indexOf('CB_BankPay')!=-1">CB_BankPay - - Add Rate -
@@ -385,8 +385,13 @@ -
+

Card Payment Rate

+ + Add Card Payment Rates +
@@ -398,11 +403,6 @@ - - Add Card Payment Rates -
@@ -453,8 +453,13 @@ -
-

A+

+
+

Alipay+ Rate

+ + Add A+(APS) Rate +
@@ -468,11 +473,6 @@ role="button" ng-click="apsBankCtrl.rate_name='ApsCashier'">A+(Online) - - Add A+(APS) Rate -
diff --git a/src/main/ui/static/payment/partner/templates/rate_config_dialog.html b/src/main/ui/static/payment/partner/templates/rate_config_dialog.html index 5bb048de0..586607cba 100644 --- a/src/main/ui/static/payment/partner/templates/rate_config_dialog.html +++ b/src/main/ui/static/payment/partner/templates/rate_config_dialog.html @@ -14,10 +14,10 @@
-