|
@@ -33,7 +33,7 @@ public class VcUtil {
|
|
*
|
|
*
|
|
* @return 验证码
|
|
* @return 验证码
|
|
*/
|
|
*/
|
|
- private static String randomVc(String phone) {
|
|
|
|
|
|
+ private static String randomVc() {
|
|
return ValidateCodeUtils.generateValidateCode(6).toString();
|
|
return ValidateCodeUtils.generateValidateCode(6).toString();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -69,7 +69,7 @@ public class VcUtil {
|
|
IpCheckUtil.checkRes("user-login-send-vc", 30);
|
|
IpCheckUtil.checkRes("user-login-send-vc", 30);
|
|
|
|
|
|
// 开始发送
|
|
// 开始发送
|
|
- String number = randomVc(phone);
|
|
|
|
|
|
+ String number = randomVc();
|
|
boolean bool = sendVc(phone, number);
|
|
boolean bool = sendVc(phone, number);
|
|
if (bool) {
|
|
if (bool) {
|
|
// 存入redis
|
|
// 存入redis
|