Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
zhangshaowu
/
pipi-helper
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 45ab0084
authored
Oct 16, 2022
by
zhaolianjie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
卡片流程 - 删除群组
1 parent
3287999c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
src/main/java/com/pipihelper/project/feishu/controller/FeiShuEventController.java
src/main/java/com/pipihelper/project/scheduled/MassageNoticeScheduleService.java
src/main/java/com/pipihelper/project/feishu/controller/FeiShuEventController.java
View file @
45ab008
...
...
@@ -217,6 +217,13 @@ public class FeiShuEventController {
return
null
;
}
@PostMapping
(
"/delete-chat-list"
)
public
Object
deleteChat
()
{
String
chatId
=
(
String
)
CacheUtil
.
get
(
"chatId"
);
log
.
info
(
"删除群组id:{}"
,
chatId
);
feiShuApiService
.
deleteChatList
(
chatId
);
return
null
;
}
@PostMapping
(
"/employee-list"
)
public
Object
event
()
{
...
...
@@ -367,13 +374,13 @@ public class FeiShuEventController {
}
@PostMapping
(
"/send-msg"
)
public
Result
sendMsg
(
String
receiveId
,
String
msg
,
String
receiveIdType
){
public
Result
sendMsg
(
String
receiveId
,
String
msg
,
String
receiveIdType
)
{
FeiShuMsgDTO
feiShuMsgDTO
=
new
FeiShuMsgDTO
();
JSONObject
content
=
new
JSONObject
();
content
.
put
(
"text"
,
msg
);
feiShuMsgDTO
.
setMsgType
(
"text"
);
feiShuMsgDTO
.
setContent
(
content
.
toString
());
if
(
receiveId
.
equals
(
"-1"
))
{
if
(
receiveId
.
equals
(
"-1"
))
{
receiveId
=
(
String
)
CacheUtil
.
get
(
"chatId"
);
}
feiShuMsgDTO
.
setReceiveId
(
receiveId
);
...
...
src/main/java/com/pipihelper/project/scheduled/MassageNoticeScheduleService.java
View file @
45ab008
...
...
@@ -156,7 +156,16 @@ public class MassageNoticeScheduleService {
}
}
}
/**
* 每周四18:00删除当天的群聊
*/
@Async
@Scheduled
(
cron
=
"0 0 18 * * ?"
)
public
void
deleteChatList
()
{
String
chatId
=
(
String
)
CacheUtil
.
get
(
"chatId"
);
feiShuApiService
.
deleteChatList
(
chatId
);
}
/**
* 当天时间2:55,给第一波三个人更新卡片,并发送应用内提醒
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment