|
@@ -111,6 +111,9 @@ public class SmsService {
|
|
|
*/
|
|
|
public boolean checkCode(String phone, String code) {
|
|
|
logger.info("检查验证码: {} : {}", phone, code);
|
|
|
+ if (debug && "123123".equals(code)) {
|
|
|
+ logger.warn("开发模式:默认验证码【123123】通过");
|
|
|
+ }
|
|
|
String result = RedisUtil.get(phone + "_" + code);
|
|
|
if (Objects.nonNull(result)) {
|
|
|
RedisUtil.delete(phone + "_" + code); // 阅后即焚
|