|
@@ -126,9 +126,7 @@ public class QHSELoginServiceImpl implements QHSELoginService {
|
|
|
}
|
|
|
|
|
|
public int generateSms() {
|
|
|
- int lowerBound = 10000;
|
|
|
- int code = new Random().nextInt(1000000-10000); // 生成0-9999的随机数
|
|
|
- return lowerBound + code;
|
|
|
+ return 100000 + new Random().nextInt(900000);
|
|
|
}
|
|
|
|
|
|
|