sms
parent
0a4785ae1b
commit
c31b0707e2
|
|
@ -96,8 +96,7 @@ public class SmsRemote {
|
||||||
return SingleResponse.of(bizId);
|
return SingleResponse.of(bizId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SingleResponse<String> signValidCode(String mobile, String validCode) {
|
public SingleResponse<String> signValidCode(String bizId, String validCode) {
|
||||||
String bizId = cn.hutool.core.lang.UUID.fastUUID().toString();
|
|
||||||
Object code = redisService.get(bizId);
|
Object code = redisService.get(bizId);
|
||||||
if (code == null) {
|
if (code == null) {
|
||||||
throw new BizException(SMS_CODE_EXPIRED);
|
throw new BizException(SMS_CODE_EXPIRED);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue