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
80976a1e
Commit
80976a1e
authored
Nov 06, 2020
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug/fixUserCount' into 'master'
bug: [none] fixUserCount See merge request rays/pcloud-book!1033
parents
96cd461c
715f4aa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+4
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
80976a1e
...
...
@@ -2,6 +2,7 @@ package com.pcloud.book.rightsSetting.biz.impl;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.math.MathUtil
;
import
cn.hutool.core.util.RandomUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.google.common.collect.Lists
;
...
...
@@ -118,6 +119,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.elasticsearch.common.math.MathUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
...
...
@@ -1830,10 +1832,11 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
@Override
public
Integer
getUserCount
()
{
Integer
userCount
=
102336
;
Integer
userCount
=
null
;
String
key
=
"BOOK:APPLET:RIGHTS_SETTING_USER_COUNT"
;
String
value
=
JedisClusterUtils
.
get
(
key
);
if
(
StringUtil
.
isEmpty
(
value
))
{
userCount
=
RandomUtil
.
randomInt
(
3000
,
5000
);
JedisClusterUtils
.
set
(
key
,
userCount
.
toString
(),
24
*
3600
);
}
else
{
userCount
=
Integer
.
valueOf
(
value
);
...
...
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