浏览代码

feature 代码提交

xiahan 3 周之前
父节点
当前提交
d667767a71

+ 1 - 3
qhse-common/src/main/java/com/rongwei/bscommon/system/service/impl/QHSELoginServiceImpl.java

@@ -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);
     }