1. fix
This commit is contained in:
2026-04-06 21:20:26 +08:00
parent e95086ad46
commit 3482156025

View File

@@ -95,7 +95,7 @@ public class Oauth2SmsEndpoint {
@RedisDebounce(key = "sms:debounce", param = "#phone", interval = 60, includeRemainingTime = true, message = "短信发送过于频繁") @RedisDebounce(key = "sms:debounce", param = "#phone", interval = 60, includeRemainingTime = true, message = "短信发送过于频繁")
@PostMapping("/oauth/sms/send-register") @PostMapping("/oauth/sms/send-register")
public R sendRegister(@RequestParam String tenantId, @RequestParam String phone) { public R sendRegister(@RequestParam String phone) {
// 校验手机加密认证,防止恶意发送验证码 // 校验手机加密认证,防止恶意发送验证码
String decryptedPhone = SM2Util.decrypt(phone, properties.getPublicKey(), properties.getPrivateKey()); String decryptedPhone = SM2Util.decrypt(phone, properties.getPublicKey(), properties.getPrivateKey());
if (StringUtil.isBlank(decryptedPhone)) { if (StringUtil.isBlank(decryptedPhone)) {