Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
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
huluobin
gogirl-miniapp-backend
Commits
1b800679
Commit
1b800679
authored
Sep 02, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预约提醒文案
parent
317833c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
MiniappPushMsgServiceImpl.java
...tructure/service/push/impl/MiniappPushMsgServiceImpl.java
+6
-2
No files found.
src/main/java/com/gogirl/infrastructure/service/push/impl/MiniappPushMsgServiceImpl.java
View file @
1b800679
...
@@ -38,8 +38,12 @@ public class MiniappPushMsgServiceImpl implements PushMsgService {
...
@@ -38,8 +38,12 @@ public class MiniappPushMsgServiceImpl implements PushMsgService {
@Override
@Override
public
void
sendScheduleMsg
(
String
openId
,
String
scheduleName
,
Date
arriveTime
,
String
departmentName
,
String
address
)
{
public
void
sendScheduleMsg
(
String
openId
,
String
scheduleName
,
Date
arriveTime
,
String
departmentName
,
String
address
)
{
log
.
info
(
"推送预约提醒订阅消息"
);
log
.
info
(
"推送预约提醒订阅消息"
);
String
tips
;
String
tips
=
"距预约剩余1小时,请准时到店,超时将取消"
;
if
((
arriveTime
.
getTime
()
-
System
.
currentTimeMillis
())
/
1000
/
60
<
60
)
{
tips
=
"您的预约时间很快到了,请准时到店,迟到15分钟将会自动取消"
;
}
else
{
tips
=
"距预约剩余1小时,请准时到店,超时将取消"
;
}
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
this
.
send
(
WxSubscribeMessageRequest
.
builder
()
this
.
send
(
WxSubscribeMessageRequest
.
builder
()
.
toUser
(
openId
)
.
toUser
(
openId
)
...
...
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