From 366004e46c0541394319d2fec239538e7f246e56 Mon Sep 17 00:00:00 2001 From: luoyang Date: Thu, 5 Mar 2020 19:05:41 +0800 Subject: [PATCH] delete app not found test --- pom.xml | 2 +- .../manage/appclient/core/impls/RetailRSvcServiceImpl.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 415730784..67bde6874 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 manage - 1.3.87 + 1.3.88 UTF-8 1.8.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 2c5124683..1e220b6c3 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 @@ -11,6 +11,7 @@ import au.com.royalpay.payment.tools.codec.AESCrypt; import au.com.royalpay.payment.tools.device.DeviceSupport; import au.com.royalpay.payment.tools.encryptalgorithm.SignUtils; import au.com.royalpay.payment.tools.exceptions.BadRequestException; +import au.com.royalpay.payment.tools.exceptions.NotFoundException; import au.com.royalpay.payment.tools.mappers.CommonIncrementalChannelMapper; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; @@ -47,9 +48,8 @@ public class RetailRSvcServiceImpl implements RetailRSvcService { String clientType = device.getString("client_type"); deviceSupport.findRegister(clientType); JSONObject clientConfig = clientConfigMapper.find(device.getIntValue("client_id")); - if (!debug && !clientConfig.getBooleanValue("geek_shop_status") && device.getIntValue("client_id")==9) { -// throw new NotFoundException(); - return new JSONObject(); + if (!debug && !clientConfig.getBooleanValue("geek_shop_status") && device.getIntValue("client_id") != 9) { + throw new NotFoundException(); } JSONObject svcInfo = commonIncrementalChannelMapper.findIncreamentalChannelBySourceCode(sourceCode); if (svcInfo == null || StringUtils.isEmpty(svcInfo.getString("channel_pub_key"))