From 31130688596dc2c74f43f6aaac2ffd9a3c2af2cd Mon Sep 17 00:00:00 2001 From: kira <164851225@qq.com> Date: Fri, 24 Aug 2018 17:12:00 +0800 Subject: [PATCH] fixbug parent client invalid --- .../manage/signin/core/impls/SignInAccountServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java index f874211e4..661e0b650 100644 --- a/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java @@ -141,7 +141,7 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati client.putAll(clientConfigService.find(client_id)); client = clientInfoWithNoSecretInfo(client); if (client.getInteger("parent_client_id") != null) { - JSONObject rootPartner = clientManager.getClientInfo(client.getIntValue("parent_client_id")); + JSONObject rootPartner = clientManager.getClientInfoIgnoreInvalid(client.getIntValue("parent_client_id")); rootPartner.putAll(clientConfigService.find(client.getIntValue("parent_client_id"))); rootPartner = clientInfoWithNoSecretInfo(rootPartner); account.put("parent_client", rootPartner); @@ -253,7 +253,7 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati client.putAll(clientConfigService.find(client.getIntValue("client_id"))); client = clientInfoWithNoSecretInfo(client); if (client.getInteger("parent_client_id") != null) { - JSONObject rootPartner = clientManager.getClientInfo(client.getIntValue("parent_client_id")); + JSONObject rootPartner = clientManager.getClientInfoIgnoreInvalid(client.getIntValue("parent_client_id")); rootPartner.putAll(clientConfigService.find(client.getIntValue("parent_client_id"))); rootPartner = clientInfoWithNoSecretInfo(rootPartner); account.put("parent_client", rootPartner);