From 3341ff3ff19fc8767e825a2d66e5dcc4787b9cc5 Mon Sep 17 00:00:00 2001 From: luoyang Date: Wed, 19 Feb 2020 15:08:45 +0800 Subject: [PATCH] add logger debug --- pom.xml | 2 +- .../manage/appclient/core/impls/RetailRSvcServiceImpl.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7db230323..c96ce8545 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 manage - 1.3.44 + 1.3.45 UTF-8 1.4.0 diff --git a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailRSvcServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailRSvcServiceImpl.java index 0b78d5ddf..2722522d1 100644 --- a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailRSvcServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailRSvcServiceImpl.java @@ -82,6 +82,7 @@ public class RetailRSvcServiceImpl implements RetailRSvcService { || StringUtils.isEmpty(svcInfo.getString("platform_pub_key")) || StringUtils.isEmpty("platform_pri_key")) { throw new BadRequestException("this channel config is wrong"); } + logger.debug("{} new services apply :{}", params.getString("signClient"),params.toJSONString()); String signa = params.getString("sign"); params.remove("sign"); params = JSONObject.parseObject(JSON.toJSONString(params), Feature.OrderedField); @@ -97,10 +98,14 @@ public class RetailRSvcServiceImpl implements RetailRSvcService { String signPrice = "0"; String signRate = "0"; if (params.get("signPrice") != null) { + logger.debug("{} new services apply amount origin:{}", params.getString("signClient"),params.getString("signPrice")); signPrice = decData(params.getString("signPrice"), key, svcInfo.getString("platform_pri_key")); + logger.debug("{} new services apply amount now:{}", params.getString("signClient"),signPrice); } if (params.get("signRate") != null) { + logger.debug("{} new services apply rate origin:{}", params.getString("signClient"),params.getString("signRate")); signRate = decData(params.getString("signRate"), key, svcInfo.getString("platform_pri_key")); + logger.debug("{} new services apply rate origin:{}", params.getString("signClient"),signRate); } JSONObject serviceApply = new JSONObject(); serviceApply.put("apply_id", UUID.randomUUID().toString());