From 7848f11eb73a457f336619e35f709b949ad6afab Mon Sep 17 00:00:00 2001 From: luoyang Date: Tue, 16 Jul 2019 10:20:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=20app=E4=BF=AE=E6=94=B9=E5=95=86=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=AF=BC=E8=87=B4?= =?UTF-8?q?client=5Fpay=5Ftype=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appclient/core/impls/ManageAppServiceImp.java | 4 ++++ .../manage/merchants/core/impls/ClientManagerImpl.java | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/ManageAppServiceImp.java b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/ManageAppServiceImp.java index 2de0ebf03..140bcc3e0 100644 --- a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/ManageAppServiceImp.java +++ b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/ManageAppServiceImp.java @@ -138,6 +138,10 @@ public class ManageAppServiceImp implements ManageAppService { String clientType = device.getString("client_type"); manageDeviceSupport.findRegister(clientType); JSONObject manager = managerMapper.findById(device.getString("manager_id")); + if (StringUtils.isNotBlank(info.getClient_pay_type())&& StringUtils.isNotBlank(info.getClient_pay_desc())) { + info.setClient_pay_type(""); + info.setClient_pay_desc(""); + } clientManager.updateClientRegisterInfo(manager, clientMoniker, info); } 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 be80afe17..cace7252a 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 @@ -415,8 +415,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid } //商户支付场景 if (StringUtils.isNotBlank(client.getString("client_pay_type"))) { - client.put("client_pay_type", client.getString("client_pay_type").split(",")); - client.put("client_pay_desc", client.getString("client_pay_desc").split(",")); + client.put("client_pay_type",client.getString("client_pay_type").split(",")); + client.put("client_pay_desc",client.getString("client_pay_desc").split(",")); } if (StringUtils.isNotBlank(client.getString("parent_client_id")) && sysClientMapper.childClientId(client.getIntValue("client_id")).size() > 0) { @@ -767,8 +767,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid JSONObject clientConfig = new JSONObject(); clientConfig.put("client_id", clientId); clientConfig.put("client_moniker", client.getString("client_moniker")); - clientConfig.put("client_pay_type", updateInfo.getString("client_pay_type")); - clientConfig.put("client_pay_desc", updateInfo.get("client_pay_desc")); + if (StringUtils.isNotBlank(updateInfo.getString("client_pay_type"))&& StringUtils.isNotBlank(updateInfo.getString("client_pay_desc"))) { + clientConfig.put("client_pay_type", updateInfo.getString("client_pay_type")); + clientConfig.put("client_pay_desc", updateInfo.getString("client_pay_desc")); + } clientConfigMapper.update(clientConfig); clientInfoCacheSupport.clearClientCache(clientId); }