Forráskód Böngészése

修改数据推送问题

cuimengchao 3 éve
szülő
commit
8f90de9bf2

+ 1 - 0
src/main/java/com/yx/face/service/impl/AdminServiceImpl.java

@@ -74,6 +74,7 @@ public class AdminServiceImpl implements AdminService {
          * */
         Integer adminLogin = (Integer) redisUtil.get(ADMIN_LOGIN + adminInfo.getId());
         if (adminLogin != null && adminLogin >= 5) {
+            redisUtil.incr(ADMIN_LOGIN + adminInfo.getId(), 1);
             redisUtil.expire(ADMIN_LOGIN + adminInfo.getId(), 300);
             throw new ServiceException("连续输错" + adminLogin + "次,账号锁定,请过5分钟后重试!");
         }

+ 1 - 1
src/main/java/com/yx/face/service/impl/SystemPushConfigServiceImpl.java

@@ -50,7 +50,7 @@ public class SystemPushConfigServiceImpl implements SystemPushConfigService {
         }
         Date date = new Date();
         SystemPushConfig config = JSONObject.parseObject(JSON.toJSONString(dto), SystemPushConfig.class);
-        config.setAccount(primary.getNickname());
+        config.setAccount(primary.getUsername());
         config.setAccountId(primary.getId());
         config.setAdminId(userId);
         config.setCreateTime(date);