Browse Source

密码登录

hurixing 4 months ago
parent
commit
304de68290

+ 4 - 7
hcp-core/src/main/java/com/yingyangfly/core/service/impl/AppUserService.java

@@ -368,9 +368,6 @@ public class AppUserService extends ServiceImpl<AppUserMapper, AppUser> implemen
         return map;
     }
 
-    @Autowired
-    PayService payService;
-
 
     @Transactional(rollbackFor = Exception.class)
     public ResultResponse saveAppUser(AppUser appUser) {
@@ -712,11 +709,11 @@ public class AppUserService extends ServiceImpl<AppUserMapper, AppUser> implemen
         }
         Random rand = new Random();
         int randomNumber = rand.nextInt(1000000);
-//        String random = String.format("%06d", randomNumber);
+        String random = String.format("%06d", randomNumber);
         //6位随机数
-//        Boolean isSuccess = SmgUtil.sendCheckCode(mobile, MsgTemplateEnums.GET_CHECK_CODE.getTempalteCode(), random);
-        String random = "123456";
-        Boolean isSuccess = true;
+        Boolean isSuccess = SmgUtil.sendCheckCode(mobile, MsgTemplateEnums.GET_CHECK_CODE.getTempalteCode(), random);
+//        String random = "123456";
+//        Boolean isSuccess = true;
         if (isSuccess) {
             // 防机器
             redisClient.set("hcp:sms:mobile:"+mobile,random,120);