|
@@ -3,6 +3,7 @@ package com.boman.auth.service;
|
|
|
import com.boman.common.redis.service.RedisService;
|
|
|
import com.boman.domain.dto.AjaxResult;
|
|
|
import com.boman.domain.form.LoginBody;
|
|
|
+import com.boman.system.api.RemoteLoginInforService;
|
|
|
import com.boman.wechat.api.RemoteWechatService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -39,7 +40,7 @@ public class SysLoginService {
|
|
|
@Autowired
|
|
|
private RedisService redisService;
|
|
|
@Resource
|
|
|
- private RemoteWechatService remoteWechatService;
|
|
|
+ private RemoteLoginInforService remoteLoginInforService;
|
|
|
|
|
|
@Value("${upkeep}")
|
|
|
private Boolean upKeep;
|
|
@@ -89,7 +90,7 @@ public class SysLoginService {
|
|
|
|
|
|
//判断15天内是否登录过 大于0 登录过
|
|
|
if (!"admin".equals(username)){
|
|
|
- Integer lastLogininforCount = remoteWechatService.getLastLogininfor(username);
|
|
|
+ Integer lastLogininforCount = remoteLoginInforService.getLastLogininfor(username);
|
|
|
if (lastLogininforCount < 1){
|
|
|
//设置用户停用
|
|
|
remoteUserService.updateStatus(user);
|
|
@@ -137,7 +138,7 @@ public class SysLoginService {
|
|
|
}
|
|
|
//判断15天内是否登录过 大于0 登录过
|
|
|
if (!"admin".equals(userName)) {
|
|
|
- Integer lastLogininforCount = remoteWechatService.getLastLogininfor(userName);
|
|
|
+ Integer lastLogininforCount = remoteLoginInforService.getLastLogininfor(userName);
|
|
|
if (lastLogininforCount < 1) {
|
|
|
//设置用户停用
|
|
|
remoteUserService.updateStatus(user);
|