mirror of
https://github.com/luoye663/e5.git
synced 2024-12-25 11:18:50 +00:00
登录成功后返回token过期时间
登录错误后将不在续订
This commit is contained in:
parent
f61139af38
commit
62886be7c2
2
pom.xml
2
pom.xml
@ -10,7 +10,7 @@
|
||||
</parent>
|
||||
<groupId>io.qyi</groupId>
|
||||
<artifactId>e5</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.6</version>
|
||||
<name>e5</name>
|
||||
<description>Demo project for Spring Boot</description>
|
||||
|
||||
|
@ -3,6 +3,7 @@ package io.qyi.e5.service.task.impl;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import io.qyi.e5.outlook.entity.Outlook;
|
||||
import io.qyi.e5.outlook.service.IOutlookService;
|
||||
import io.qyi.e5.outlook_log.service.IOutlookLogService;
|
||||
import io.qyi.e5.service.task.ITask;
|
||||
import io.qyi.e5.util.redis.RedisUtil;
|
||||
import org.slf4j.Logger;
|
||||
@ -37,6 +38,9 @@ public class TaskImpl implements ITask {
|
||||
@Autowired
|
||||
RedisUtil redisUtil;
|
||||
|
||||
@Autowired
|
||||
IOutlookLogService outlookLogService;
|
||||
|
||||
@Override
|
||||
@Async
|
||||
public void sendTaskOutlookMQ(int github_id) {
|
||||
@ -78,7 +82,11 @@ public class TaskImpl implements ITask {
|
||||
logger.warn("未找到此用户,github_id: {}", github_id);
|
||||
return false;
|
||||
}
|
||||
return outlookService.getMailList(Outlook);
|
||||
boolean mailList = outlookService.getMailList(Outlook);
|
||||
if (!mailList) {
|
||||
outlookLogService.addLog(github_id, "error", 0, "检测到错误,下次将不再自动调用,请修正错误后再授权开启续订。" );
|
||||
}
|
||||
return mailList;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user