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 e63af74a
authored
Oct 27, 2022
by
liushuangwu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
b6b5bbd6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
src/main/java/com/pipihelper/project/feishu/controller/FeiShuEventController.java
src/main/java/com/pipihelper/project/scheduled/MassageNoticeScheduleService.java
src/main/resources/mybatis/PainMapper.xml
src/main/resources/templates/massage-msg-card.json
src/main/java/com/pipihelper/project/feishu/controller/FeiShuEventController.java
View file @
e63af74
...
@@ -106,7 +106,7 @@ public class FeiShuEventController {
...
@@ -106,7 +106,7 @@ public class FeiShuEventController {
@PostMapping
(
"/msg_card"
)
@PostMapping
(
"/msg_card"
)
public
JSONObject
msgCardEvent
(
@RequestBody
String
s
)
throws
Exception
{
public
JSONObject
msgCardEvent
(
@RequestBody
String
s
)
throws
Exception
{
JSONObject
reqJsonObject
=
JSON
.
parseObject
(
s
);
JSONObject
reqJsonObject
=
JSON
.
parseObject
(
s
);
System
.
out
.
println
(
s
);
log
.
info
(
"msgCardEvent s {}"
,
s
);
if
(
reqJsonObject
.
containsKey
(
"challenge"
))
{
if
(
reqJsonObject
.
containsKey
(
"challenge"
))
{
return
reqJsonObject
;
return
reqJsonObject
;
}
}
...
...
src/main/java/com/pipihelper/project/scheduled/MassageNoticeScheduleService.java
View file @
e63af74
...
@@ -175,7 +175,7 @@ public class MassageNoticeScheduleService {
...
@@ -175,7 +175,7 @@ public class MassageNoticeScheduleService {
* 当天时间2:55,给第一波三个人更新卡片,并发送应用内提醒
* 当天时间2:55,给第一波三个人更新卡片,并发送应用内提醒
*/
*/
// @Async
// @Async
@Scheduled
(
cron
=
"0 55 14 ? * THU"
)
/*
@Scheduled(cron = "0 55 14 ? * THU")
public void massageStart() {
public void massageStart() {
List<Pain> pains = painService.findListAsc(3);
List<Pain> pains = painService.findListAsc(3);
// String msg = "{\"text\":\"当前按摩进度:<at user_id=\\\"%s\\\">%s</at> <at user_id=\\\"%s\\\">%s</at> <at user_id=\\\"%s\\\">%s</at>\"}";
// String msg = "{\"text\":\"当前按摩进度:<at user_id=\\\"%s\\\">%s</at> <at user_id=\\\"%s\\\">%s</at> <at user_id=\\\"%s\\\">%s</at>\"}";
...
@@ -205,6 +205,6 @@ public class MassageNoticeScheduleService {
...
@@ -205,6 +205,6 @@ public class MassageNoticeScheduleService {
feiShuMsgDTO.setReceiveId(chatId);
feiShuMsgDTO.setReceiveId(chatId);
feiShuApiService.sendMsg(feiShuMsgDTO, "chat_id");
feiShuApiService.sendMsg(feiShuMsgDTO, "chat_id");
}
}
*/
}
}
src/main/resources/mybatis/PainMapper.xml
View file @
e63af74
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</where>
</where>
</select>
</select>
<update
id=
"updateByOpenId"
parameterType=
"java.lang.Integer"
>
<update
id=
"updateByOpenId"
>
update t_pain set open_id = #{robOpenId},
update t_pain set open_id = #{robOpenId},
name = #{robName} where open_id = #{oldOpenId}
name = #{robName} where open_id = #{oldOpenId}
</update>
</update>
...
...
src/main/resources/templates/massage-msg-card.json
View file @
e63af74
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
{
{
"tag"
:
"div"
,
"tag"
:
"div"
,
"text"
:
{
"text"
:
{
"content"
:
"1. 按摩时间15:00-17:30;
\n
2. 按摩时长每人15分钟,3人一组,按照图片顺序从上至下依次进行;
\n
3.
按完记得在自己的卡片上点击完成哦,系统会自动通知下一位成员;
\n
4. 点击放弃,名额将会发送到大群秒杀,先到先得;
\n
5
. 有事暂时来不了,可以推迟到队伍最后;
\n
"
,
"content"
:
"1. 按摩时间15:00-17:30;
\n
2. 按摩时长每人15分钟,3人一组,按照图片顺序从上至下依次进行;
\n
3.
点击放弃,名额将会发送到大群秒杀,先到先得;
\n
4
. 有事暂时来不了,可以推迟到队伍最后;
\n
"
,
"tag"
:
"lark_md"
"tag"
:
"lark_md"
}
}
},
},
...
...
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