Pārlūkot izejas kodu

短信验证暂时注释

纪新园 1 nedēļu atpakaļ
vecāks
revīzija
d72406d715

+ 2 - 2
blade-auth/src/main/java/org/springblade/auth/verification/verificationController.java

@@ -76,14 +76,14 @@ public class verificationController {
 		String code = "123456";
 		System.out.println("验证码:" + code);
 		String parameter = String.format(CommonEnum.SMS_MSG_TEMPLATE.info, code, "3");
-		R<SmsResponse> responseR = smsClient.sendMessage("tencent-kbs", parameter, phone);
+		/*R<SmsResponse> responseR = smsClient.sendMessage("tencent-kbs", parameter, phone);
 		SmsResponse smsResponse = responseR.getData();
 		if (ObjectUtils.isEmpty(smsResponse)) {
 			return R.fail("短信发送失败,请稍后重试");
 		}
 		if (org.springframework.util.StringUtils.hasText(smsResponse.getMsg())) {
 			return R.fail("短信发送失败,请稍后重试");
-		}
+		}*/
 		redisUtils.set(CacheNames.APP_LOGIN_CODE_KEY + redisKey, code, NumberEnum.THREE_HUNDRED.number);
 		return R.success(code);
 	}