From d1526b291b8dbda4b5eac5860bb9992a5f740dc8 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Wed, 18 May 2022 09:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/HighMerStoreAmountController.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/hai-bweb/src/main/java/com/bweb/controller/HighMerStoreAmountController.java b/hai-bweb/src/main/java/com/bweb/controller/HighMerStoreAmountController.java index c08ef7f4..c86e4938 100644 --- a/hai-bweb/src/main/java/com/bweb/controller/HighMerStoreAmountController.java +++ b/hai-bweb/src/main/java/com/bweb/controller/HighMerStoreAmountController.java @@ -66,22 +66,12 @@ public class HighMerStoreAmountController { } if (body.getLong("storeId") == null - || body.getBigDecimal("amount") == null - || StringUtils.isBlank(body.getString("twoPwd"))) { + || body.getBigDecimal("amount") == null) { throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); } if (body.getBigDecimal("amount").compareTo(new BigDecimal("0")) == -1) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "充值金额不能小于0"); } - // 查询二级密码 - HighCompanyTwoPwd pwdByOrg = companyTwoPwdService.getTwoPwdByOrg(userInfoModel.getBsOrganization().getId()); - if (pwdByOrg == null) { - throw ErrorHelp.genException(SysCode.System, ErrorCode.NOT_FOUND_TOW_PWD, ""); - } - if (!AESEncodeUtil.aesEncrypt(body.getString("twoPwd")).equals(pwdByOrg.getPassword())) { - throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "支付密码错误"); - } - Map map = new HashMap<>(); map.put("sourceType", MerStoreAmountSourceTypeEnum.type1.getType()); map.put("sourceContent", "充值额度:" + body.getBigDecimal("amount") + " 元");