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(),