Toggle navigation
Toggle navigation
This project
Loading...
Sign in
YOHOBUY
/
yohobuy-union
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
gezhengwen
8 years ago
Commit
779443c16a56f5acbf016cd9decc6c85b0173bb3
1 parent
9dc84d27
修改redis保存时间
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
server/src/main/java/com/yoho/unions/server/service/impl/UnionServiceImpl.java
web/src/main/webapp/META-INF/autoconf/config.properties
server/src/main/java/com/yoho/unions/server/service/impl/UnionServiceImpl.java
View file @
779443c
...
...
@@ -207,7 +207,7 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher
clickUnion
.
info
(
"clickUnion set redis with key={}, value={}"
,
key
,
JSON
.
toJSONString
(
request
));
yhValueOperations
.
set
(
key
,
JSON
.
toJSONString
(
request
));
String
invalidTime
=
"activeTime"
+
"_"
+
request
.
getUnion_type
();
DynamicIntProperty
activeTime
=
DynamicPropertyFactory
.
getInstance
().
getIntProperty
(
invalidTime
,
3
);
DynamicIntProperty
activeTime
=
DynamicPropertyFactory
.
getInstance
().
getIntProperty
(
invalidTime
,
48
);
yHRedisTemplate
.
longExpire
(
key
,
activeTime
.
get
(),
TimeUnit
.
HOURS
);
...
...
web/src/main/webapp/META-INF/autoconf/config.properties
View file @
779443c
...
...
@@ -47,9 +47,9 @@ web.context=union
draw.writeFile.delay
=
${draw.writeFile.delay}
#广点通 7*24
activeTime_3
=
24
activeTime_3
=
48
#今日头条 24
activeTime_4
=
24
activeTime_4
=
48
#付费渠道
activeTime_pay_channel
=
90
...
...
Please
register
or
login
to post a comment