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
63e277af
Commit
63e277af
authored
Feb 11, 2020
by
桂前礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix json null
parent
685affd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
PcloudGuideSilenceRunnerImpl.java
...cloud/book/guide/runner/PcloudGuideSilenceRunnerImpl.java
+8
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/guide/runner/PcloudGuideSilenceRunnerImpl.java
View file @
63e277af
...
@@ -99,7 +99,14 @@ public class PcloudGuideSilenceRunnerImpl implements ApplicationRunner {
...
@@ -99,7 +99,14 @@ public class PcloudGuideSilenceRunnerImpl implements ApplicationRunner {
PcloudGuideDelayDto
guideDelayDto
=
PcloudGuideDelayDto
.
builder
().
sendTime
(
new
Date
()).
duration
(
0
)
PcloudGuideDelayDto
guideDelayDto
=
PcloudGuideDelayDto
.
builder
().
sendTime
(
new
Date
()).
duration
(
0
)
.
spanTime
((
pcloudGuide
.
getTimeSpan
()
==
null
?
0
:
pcloudGuide
.
getTimeSpan
())).
num
(
pcloudGuideDelayDto
.
getNum
()
+
1
)
.
spanTime
((
pcloudGuide
.
getTimeSpan
()
==
null
?
0
:
pcloudGuide
.
getTimeSpan
())).
num
(
pcloudGuideDelayDto
.
getNum
()
+
1
)
.
robotWxId
(
pcloudGuideDelayDto
.
getRobotWxId
()).
ip
(
pcloudGuideDelayDto
.
getIp
()).
code
(
pcloudGuideDelayDto
.
getCode
()).
msgList
(
messageVOList
).
build
();
.
robotWxId
(
pcloudGuideDelayDto
.
getRobotWxId
()).
ip
(
pcloudGuideDelayDto
.
getIp
()).
code
(
pcloudGuideDelayDto
.
getCode
()).
msgList
(
messageVOList
).
build
();
JedisClusterUtils
.
hset
(
pcloudGuideDelayDto
.
getRobotWxId
()
+
PCLOUD_GUIDE_SUFFIX
,
pcloudGuideDelayDto
.
getUserWxId
(),
JSONObject
.
toJSONString
(
guideDelayDto
));
if
(
JSONObject
.
toJSONString
(
guideDelayDto
)==
null
){
guideDelayDto
=
PcloudGuideDelayDto
.
builder
().
sendTime
(
new
Date
()).
duration
(
0
)
.
spanTime
((
pcloudGuide
.
getTimeSpan
()
==
null
?
0
:
pcloudGuide
.
getTimeSpan
())).
num
(
pcloudGuideDelayDto
.
getNum
()
+
1
)
.
robotWxId
(
pcloudGuideDelayDto
.
getRobotWxId
()).
code
(
pcloudGuideDelayDto
.
getCode
()).
ip
(
pcloudGuideDelayDto
.
getIp
()).
build
();
}
JedisClusterUtils
.
hset
(
pcloudGuideDelayDto
.
getRobotWxId
()
+
PCLOUD_GUIDE_SUFFIX
,
userId
,
JSONObject
.
toJSONString
(
guideDelayDto
));
}
else
{
}
else
{
// 最后一条 删除缓存
// 最后一条 删除缓存
JedisClusterUtils
.
hdel
(
pcloudGuideDelayDto
.
getRobotWxId
()
+
PCLOUD_GUIDE_SUFFIX
,
userId
);
JedisClusterUtils
.
hdel
(
pcloudGuideDelayDto
.
getRobotWxId
()
+
PCLOUD_GUIDE_SUFFIX
,
userId
);
...
...
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