|
@@ -1,5 +1,6 @@
|
|
|
package com.zanxiang.game.module.sdk.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.util.RandomUtil;
|
|
|
import com.zanxiang.game.module.base.pojo.enums.HttpStatusEnum;
|
|
|
import com.zanxiang.game.module.sdk.constant.RedisKeyConstant;
|
|
|
import com.zanxiang.game.module.sdk.enums.ExpireTimeEnum;
|
|
@@ -21,7 +22,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.Objects;
|
|
|
-import java.util.Random;
|
|
|
|
|
|
/**
|
|
|
* @author : lingfeng
|
|
@@ -121,8 +121,7 @@ public class SmsServiceImpl implements ISmsService {
|
|
|
}
|
|
|
|
|
|
private String randomCode() {
|
|
|
- Random random = new Random();
|
|
|
- return String.valueOf(random.nextInt(999999) + 100000);
|
|
|
+ return RandomUtil.randomNumbers(6);
|
|
|
}
|
|
|
|
|
|
private String smsKey(String mobile, Integer type) {
|