From 663cd217d860058f48155fce1ee6bf5bd91397be Mon Sep 17 00:00:00 2001 From: msb_89821 Date: Wed, 19 Oct 2022 21:41:03 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E5=AE=9E=E7=8E=B0=E5=8A=9F=E8=83=BD1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mashibing/online/text/controller/PassengerController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/PassengerController.java b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/PassengerController.java index 2c789fc..5a5ff74 100644 --- a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/PassengerController.java +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/PassengerController.java @@ -48,6 +48,10 @@ public class PassengerController { // 调服务获取验证码 String smsCode = sendSMSCodeService.getSmsCode(6,passengerRequestDto.getPhoneNumber()); + if(StringUtils.isBlank(smsCode)){ + log.error(""); + return ResponseResult.fail(99,"短信验证码发送失败!"); + } log.info(""+ JSON.toJSONString(smsCode)); // 存入redis 有限时间 stringRedisTemplate.opsForValue().set(PassengerConsonant.phoneNumberCodePreKey+passengerRequestDto.getPhoneNumber(),