From 39ee9a15057dc7426804009cb1fc459b4c0919e4 Mon Sep 17 00:00:00 2001 From: "taylor.dang" Date: Fri, 24 Jul 2020 17:03:37 +0800 Subject: [PATCH] =?UTF-8?q?[Y]=20=E4=BF=AE=E5=A4=8D=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E5=95=86=E6=88=B7=E6=8A=A5=E9=94=99:=E6=97=A0=E8=B4=A6?= =?UTF-8?q?=E6=88=B7=E5=AF=BC=E8=87=B4=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 11 +++++------ .../merchants/core/impls/ClientManagerImpl.java | 8 ++++++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index d56403813..625a36471 100644 --- a/pom.xml +++ b/pom.xml @@ -5,15 +5,14 @@ au.com.royalpay.payment payment-parent - 2.2.5 + 2.2.7 4.0.0 manage - 2.3.45 + 2.3.46 UTF-8 2.4.0 - ${project.version} @@ -266,7 +265,7 @@ 192.168.0.84:5000/royalpay/manage-dev latest - ${docker-image.version} + ${project.version} @@ -301,7 +300,7 @@ hkccr.ccs.tencentyun.com/rpay/serverjre:openj9 - hkccr.ccs.tencentyun.com/cross-payment-dev/manage-dev:${docker-image.version} + hkccr.ccs.tencentyun.com/cross-payment-dev/manage-dev:${project.version} @@ -336,7 +335,7 @@ hkccr.ccs.tencentyun.com/rpay/serverjre:openj9 - hkccr.ccs.tencentyun.com/rpay/manage:${docker-image.version} + hkccr.ccs.tencentyun.com/rpay/manage:${project.version} 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 a08fbade3..95bf441ee 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 @@ -1153,8 +1153,12 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid clientModifySupport.processClientConfigModify(new SwitchPermissionModify(manager, clientMoniker, "skip_clearing", false)); if (client.getIntValue("source") == 4 || client.getIntValue("source") == 5) { List accounts = clientAccountMapper.listAdminAccounts(client.getIntValue("client_id")); - JSONObject account = accounts.get(0); - sendInitEmail(client, account.getString("username"), "*****", false); + if (accounts == null || accounts.size() <= 0) { + initAdminUserAndSendEmail(manager, clientMoniker, client, false); + } else { + JSONObject account = accounts.get(0); + sendInitEmail(client, account.getString("username"), "*****", false); + } // sendInitEmail(manager, client, account.getString("username"), "*****"); saveClientAuditProcess(client.getIntValue("client_id"), open_status, 5, "εˆθ§„ι€šθΏ‡", manager, 1); clientModifySupport.processClientConfigModify(new SwitchPermissionModify(manager, clientMoniker, "skip_clearing", false));