记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
d4ffef40
Commit
d4ffef40
authored
Aug 10, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev-sweet' into dev-sweet
parents
52b2c450
2d81d0f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
SweetWechatTemplateServiceImpl.java
...ce/sweet/service/impl/SweetWechatTemplateServiceImpl.java
+10
-5
No files found.
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetWechatTemplateServiceImpl.java
View file @
d4ffef40
...
@@ -64,7 +64,8 @@ public class SweetWechatTemplateServiceImpl {
...
@@ -64,7 +64,8 @@ public class SweetWechatTemplateServiceImpl {
SweetWechatUser
sweetWechatUser
=
redisDataUtils
.
getSweetWechatUser
(
remindInfo
.
getUnionId
());
SweetWechatUser
sweetWechatUser
=
redisDataUtils
.
getSweetWechatUser
(
remindInfo
.
getUnionId
());
KylinPerformanceVo
performanceVo
=
(
KylinPerformanceVo
)
redisUtil
.
get
(
KylinRedisConst
.
PERFORMANCES
.
concat
(
remindInfo
.
getPerformancesId
()));
KylinPerformanceVo
performanceVo
=
(
KylinPerformanceVo
)
redisUtil
.
get
(
KylinRedisConst
.
PERFORMANCES
.
concat
(
remindInfo
.
getPerformancesId
()));
if
(
null
==
sweetWechatUser
||
null
==
performanceVo
)
{
if
(
null
==
sweetWechatUser
||
null
==
performanceVo
)
{
log
.
info
(
"\n无用户或者演出数据"
);
log
.
info
(
"无用户或者演出数据:[UnionId=[{}], [getPerformancesId=[{}]"
,
remindInfo
.
getUnionId
(),
remindInfo
.
getPerformancesId
());
continue
;
continue
;
}
}
KylinTicketTimesVo
kylinTicketTimesVo
=
performanceVo
.
getTicketTimeList
().
get
(
0
);
KylinTicketTimesVo
kylinTicketTimesVo
=
performanceVo
.
getTicketTimeList
().
get
(
0
);
...
@@ -79,12 +80,16 @@ public class SweetWechatTemplateServiceImpl {
...
@@ -79,12 +80,16 @@ public class SweetWechatTemplateServiceImpl {
String
stopSellTime
=
performanceVo
.
getStopSellTime
();
String
stopSellTime
=
performanceVo
.
getStopSellTime
();
if
(
1
==
DateUtil
.
compareStrDay
(
nowTimeStr
,
stopSellTime
))
{
// 超过售卖期 不推 删redis
if
(
1
==
DateUtil
.
compareStrDay
(
nowTimeStr
,
stopSellTime
))
{
// 超过售卖期 不推 删redis
log
.
info
(
"\n超过售卖期"
);
log
.
info
(
"超过售卖期:[nowTimeStr=[{}], [stopSellTime=[{}]"
,
nowTimeStr
,
stopSellTime
);
redisDataUtils
.
delSweetRemind
(
remindInfo
.
getUnionId
());
redisDataUtils
.
delSweetRemind
(
remindInfo
.
getUnionId
());
continue
;
continue
;
}
}
if
(-
1
==
DateUtil
.
compareStrDay
(
sellTimeLocalNewStr
,
nowTimeStr
))
{
// 还没到售卖期
if
(-
1
==
DateUtil
.
compareStrDay
(
nowTimeStr
,
sellTimeLocalNewStr
))
{
// 还没到售卖期
log
.
info
(
"\n还没到售卖期"
);
log
.
info
(
"还没到售卖期:[nowTimeStr=[{}], [sellTimeLocalNewStr=[{}]"
,
nowTimeStr
,
sellTimeLocalNewStr
);
continue
;
continue
;
}
}
// 发送模板消息接口
// 发送模板消息接口
...
@@ -114,7 +119,7 @@ public class SweetWechatTemplateServiceImpl {
...
@@ -114,7 +119,7 @@ public class SweetWechatTemplateServiceImpl {
}
catch
(
WxErrorException
e
)
{
}
catch
(
WxErrorException
e
)
{
log
.
error
(
"小程序演出提醒消息发送异常"
,
e
);
log
.
error
(
"小程序演出提醒消息发送异常"
,
e
);
}
}
log
.
info
(
msgId
);
log
.
info
(
"发送成功:[msgId=[{}]"
,
msgId
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"小程序演出提醒消息处理异常"
,
e
);
log
.
error
(
"小程序演出提醒消息处理异常"
,
e
);
}
}
...
...
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