From 6bf989327b35d066751c76db5967fd100ab579d8 Mon Sep 17 00:00:00 2001 From: msb_89821 Date: Wed, 19 Oct 2022 22:59:00 +0800 Subject: [PATCH] test --- .../online/text/controller/PassengerController.java | 6 ++++-- .../sendserver/controller/SendSmsCodeController.java | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) 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 5a5ff74..580b909 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 @@ -47,15 +47,17 @@ public class PassengerController { } // 调服务获取验证码 - String smsCode = sendSMSCodeService.getSmsCode(6,passengerRequestDto.getPhoneNumber()); + String smsCode = "123465";// 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(), +// smsCode,2, TimeUnit.MINUTES); stringRedisTemplate.opsForValue().set(PassengerConsonant.phoneNumberCodePreKey+passengerRequestDto.getPhoneNumber(), - smsCode,2, TimeUnit.MINUTES); + smsCode); return ResponseResult.success("成功!"); diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/controller/SendSmsCodeController.java b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/controller/SendSmsCodeController.java index 3d84b5b..51280d6 100644 --- a/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/controller/SendSmsCodeController.java +++ b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/controller/SendSmsCodeController.java @@ -88,10 +88,10 @@ public class SendSmsCodeController { } JSONObject jsonObject=JSON.parseObject(rutlet); Integer status=jsonObject.getInteger("status"); - if (!Integer.valueOf(0).equals(status)){ - log.info("发送失败。。"); - return ""; - } +// if (!Integer.valueOf(0).equals(status)){ +// log.info("发送失败。。"); +// return ""; +// } return String.valueOf(radom); }