From f315edac4fa01b0961525dff86500539580d32bc Mon Sep 17 00:00:00 2001 From: yixian Date: Thu, 18 Mar 2021 18:42:43 +0800 Subject: [PATCH] fix stackoverflow --- .../manage/merchants/core/impls/ClientManagerImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 7b0de4e2b..3ad05d758 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 @@ -5759,10 +5759,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid WechatMerchantInfo info = Optional.ofNullable(merchantChannelApplicationManager.getRegister(WxPayMerchantRegister.class)) .map(register -> register.findMerchant(client)) .orElseThrow(() -> new ServerErrorException("No Register found for wechat")); - Element xml = info.getRawResponseXml(); + Element elem = info.getRawResponseXml(); JSONObject object = new JSONObject(); - object.put("response_str", xml); - object.put("apply_status", info.getRawResponse()); + object.put("response_str", info.getRawResponse()); + object.put("apply_status", elem.elementText("result_code")); return object; }