diff --git a/safety-eval-infrastructure/src/main/java/org/qinan/safetyeval/infrastructure/remote/SmsRemote.java b/safety-eval-infrastructure/src/main/java/org/qinan/safetyeval/infrastructure/remote/SmsRemote.java index 2c67665..e849b0f 100644 --- a/safety-eval-infrastructure/src/main/java/org/qinan/safetyeval/infrastructure/remote/SmsRemote.java +++ b/safety-eval-infrastructure/src/main/java/org/qinan/safetyeval/infrastructure/remote/SmsRemote.java @@ -96,8 +96,7 @@ public class SmsRemote { return SingleResponse.of(bizId); } - public SingleResponse signValidCode(String mobile, String validCode) { - String bizId = cn.hutool.core.lang.UUID.fastUUID().toString(); + public SingleResponse signValidCode(String bizId, String validCode) { Object code = redisService.get(bizId); if (code == null) { throw new BizException(SMS_CODE_EXPIRED);