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
4a4df13a
Commit
4a4df13a
authored
Dec 11, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:[none] fixUserError
parent
824e5074
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
SessionUtil.java
...on/src/main/java/com/pcloud/common/utils/SessionUtil.java
+4
-0
No files found.
pcloud-common/src/main/java/com/pcloud/common/utils/SessionUtil.java
View file @
4a4df13a
package
com
.
pcloud
.
common
.
utils
;
package
com
.
pcloud
.
common
.
utils
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
com.pcloud.common.permission.PermissionException
;
import
com.pcloud.common.permission.PermissionException
;
...
@@ -213,6 +214,9 @@ public abstract class SessionUtil {
...
@@ -213,6 +214,9 @@ public abstract class SessionUtil {
throw
PermissionException
.
PERMISSION_USER_NOT_LOGIN
;
throw
PermissionException
.
PERMISSION_USER_NOT_LOGIN
;
}
}
Map
<
String
,
Object
>
map
=
JedisClusterUtils
.
getMap
(
token
,
String
.
class
,
Object
.
class
);
Map
<
String
,
Object
>
map
=
JedisClusterUtils
.
getMap
(
token
,
String
.
class
,
Object
.
class
);
if
(
MapUtils
.
isEmpty
(
map
))
{
throw
new
PermissionException
(
PermissionException
.
PERMISSION_TOKEN_EXPIRE
);
}
Integer
timeOut
=
DEFAULT_SESSION_TIMEOUT
;
Integer
timeOut
=
DEFAULT_SESSION_TIMEOUT
;
if
(
map
!=
null
&&
(
CLIENT_CODE_APP
.
equals
(
map
.
get
(
CLIENT_CODE
))
||
CLIENT_CODE_XCX
.
equals
(
map
.
get
(
CLIENT_CODE
))
if
(
map
!=
null
&&
(
CLIENT_CODE_APP
.
equals
(
map
.
get
(
CLIENT_CODE
))
||
CLIENT_CODE_XCX
.
equals
(
map
.
get
(
CLIENT_CODE
))
||
CLIENT_CODE_SAYS
.
equals
(
map
.
get
(
CLIENT_CODE
))))
{
||
CLIENT_CODE_SAYS
.
equals
(
map
.
get
(
CLIENT_CODE
))))
{
...
...
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