From ae49ed743e1431211b7219a950440f5941eddeab Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期三, 11 九月 2024 09:42:46 +0800 Subject: [PATCH] 修改 --- ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java index 328a1fb..2314df7 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java @@ -103,7 +103,12 @@ @PostMapping(value = "/add") public AjaxResult<Boolean> add(@RequestBody TApplyChargingPileDTO dto) { // 验证验证码 - String code = redisService.getCacheObject(dto.getLandlordPhone() + Constants.APPLY_CHARGING); + String code; + if(dto.getLandlordHandling().equals(1)){ + code = redisService.getCacheObject(dto.getLandlordPhone() + Constants.APPLY_CHARGING); + }else { + code = redisService.getCacheObject(dto.getAgentPhone() + Constants.APPLY_CHARGING); + } if(StringUtils.isEmpty(code)){ return AjaxResult.error("验证码已过期,请重新获取验证码!"); } -- Gitblit v1.7.1