Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
3556b65e
Commit
3556b65e
authored
Apr 01, 2020
by
桂前礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消原有发邮件的流程
parent
9810b6e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
PcloudRobotBizImpl.java
...cloud/book/pcloudkeyword/biz/impl/PcloudRobotBizImpl.java
+12
-12
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/pcloudkeyword/biz/impl/PcloudRobotBizImpl.java
View file @
3556b65e
...
...
@@ -163,18 +163,18 @@ public class PcloudRobotBizImpl implements PcloudRobotBiz {
JedisClusterUtils
.
hset
(
BookBusinessConstants
.
ACTIVE_ROBOT_CACHE_KEY_PREFIX
,
wxId
,
String
.
valueOf
(
System
.
currentTimeMillis
()
+
7
*
1000
));
}
//如果是手动上线,真实下线,发登录邮件
if
(
0
==
status
&&
1
==
robot
.
getState
())
{
String
emailKey
=
BookBusinessConstants
.
EMAIL_SPAN_TIME
+
wxId
;
String
wxid
=
JedisClusterUtils
.
get
(
emailKey
);
if
(
wxid
==
null
)
{
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()
->
{
LOGGER
.
info
(
"发送登录二维码邮件===开始"
+
wxId
);
wechatGroupConsr
.
sendQrcodeLoginEmail
(
wxId
);
LOGGER
.
info
(
"发送登录二维码邮件===结束"
+
wxId
);
});
JedisClusterUtils
.
set
(
emailKey
,
wxId
,
5
*
60
);
}
}
//
if (0 == status && 1 == robot.getState()) {
//
String emailKey = BookBusinessConstants.EMAIL_SPAN_TIME + wxId;
//
String wxid = JedisClusterUtils.get(emailKey);
//
if(wxid == null) {
//
ThreadPoolUtils.OTHER_THREAD_POOL.execute(() -> {
//
LOGGER.info("发送登录二维码邮件===开始" + wxId);
//
wechatGroupConsr.sendQrcodeLoginEmail(wxId);
//
LOGGER.info("发送登录二维码邮件===结束" + wxId);
//
});
//
JedisClusterUtils.set(emailKey, wxId , 5 * 60);
//
}
//
}
// 处理无响应的上线状态小号,更新为下线
List
<
RobotClassifyDTO
>
allPcloudRobot
=
pcloudRobotDao
.
getAllPcloudRobot
();
List
<
String
>
ids
=
allPcloudRobot
.
stream
().
filter
(
x
->
1
==
x
.
getRealStatus
()).
map
(
RobotClassifyDTO:
:
getWxId
).
collect
(
Collectors
.
toList
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment