Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
chnmuseum-party
Project
Project
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
liqin
chnmuseum-party
Commits
6afeacdd
Commit
6afeacdd
authored
Apr 13, 2021
by
wzp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
69da943c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ChinaMobileRestApiController.java
...um/party/web/controller/ChinaMobileRestApiController.java
+1
-1
LoginController.java
...nergy/chnmuseum/party/web/controller/LoginController.java
+1
-1
TBoxOperationController.java
...nmuseum/party/web/controller/TBoxOperationController.java
+2
-2
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/ChinaMobileRestApiController.java
View file @
6afeacdd
...
@@ -110,7 +110,7 @@ public class ChinaMobileRestApiController extends BaseController {
...
@@ -110,7 +110,7 @@ public class ChinaMobileRestApiController extends BaseController {
@Resource
@Resource
private
TAppRunPicService
appRunPicService
;
private
TAppRunPicService
appRunPicService
;
private
static
final
String
SHIRO_JWT_TOKEN
=
"shiro:jwt:
mac
Token:"
;
private
static
final
String
SHIRO_JWT_TOKEN
=
"shiro:jwt:Token:"
;
//用户登录次数计数 redisKey 前缀
//用户登录次数计数 redisKey 前缀
private
static
final
String
SHIRO_LOGIN_COUNT
=
"shiro_login_count_"
;
private
static
final
String
SHIRO_LOGIN_COUNT
=
"shiro_login_count_"
;
//用户登录是否被锁定 一小时 redisKey 前缀
//用户登录是否被锁定 一小时 redisKey 前缀
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/LoginController.java
View file @
6afeacdd
...
@@ -177,7 +177,7 @@ public class LoginController extends BaseController {
...
@@ -177,7 +177,7 @@ public class LoginController extends BaseController {
List
<
String
>
list1
=
new
ArrayList
<>();
List
<
String
>
list1
=
new
ArrayList
<>();
//获取当前用户角色拥有菜单
//获取当前用户角色拥有菜单
List
<
Menu
>
userMenuPerms
=
new
ArrayList
<>();
List
<
Menu
>
userMenuPerms
=
new
ArrayList
<>();
if
(
roles
!=
null
&&
roles
.
get
(
0
)
!=
null
)
{
if
(
roles
!=
null
&&
roles
.
size
()>
0
&&
roles
.
get
(
0
)
!=
null
)
{
roles
.
forEach
(
r
->
list1
.
add
(
r
.
getId
()));
roles
.
forEach
(
r
->
list1
.
add
(
r
.
getId
()));
user
.
setRoleList
(
list1
);
user
.
setRoleList
(
list1
);
userMenuPerms
=
this
.
menuService
.
getUserMenuPerms
(
list1
);
userMenuPerms
=
this
.
menuService
.
getUserMenuPerms
(
list1
);
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TBoxOperationController.java
View file @
6afeacdd
...
@@ -50,7 +50,7 @@ public class TBoxOperationController extends BaseController {
...
@@ -50,7 +50,7 @@ public class TBoxOperationController extends BaseController {
@Resource
@Resource
private
StringRedisTemplate
stringRedisTemplate
;
private
StringRedisTemplate
stringRedisTemplate
;
private
static
final
String
SHIRO_JWT_
MACTOKEN
=
"shiro:jwt:mac
Token:"
;
private
static
final
String
SHIRO_JWT_
TOKEN
=
"shiro:jwt:
Token:"
;
@ApiImplicitParams
(
value
=
{
@ApiImplicitParams
(
value
=
{
@ApiImplicitParam
(
name
=
"_index"
,
value
=
"分页起始偏移量"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"_index"
,
value
=
"分页起始偏移量"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
...
@@ -146,7 +146,7 @@ public class TBoxOperationController extends BaseController {
...
@@ -146,7 +146,7 @@ public class TBoxOperationController extends BaseController {
if
(
3
==
tBoxOperation
.
getStatus
())
{
if
(
3
==
tBoxOperation
.
getStatus
())
{
tBoxOperation
.
setMac
(
""
);
tBoxOperation
.
setMac
(
""
);
TUser
u
=
userService
.
getOne
(
new
UpdateWrapper
<
TUser
>().
eq
(
"org_id"
,
tBoxOperation
.
getOrganId
()).
eq
(
"type"
,
3
).
eq
(
"is_deleted"
,
false
));
TUser
u
=
userService
.
getOne
(
new
UpdateWrapper
<
TUser
>().
eq
(
"org_id"
,
tBoxOperation
.
getOrganId
()).
eq
(
"type"
,
3
).
eq
(
"is_deleted"
,
false
));
Set
<
String
>
keys
=
stringRedisTemplate
.
keys
(
SHIRO_JWT_
MAC
TOKEN
+
"*"
);
Set
<
String
>
keys
=
stringRedisTemplate
.
keys
(
SHIRO_JWT_TOKEN
+
"*"
);
ValueOperations
<
String
,
String
>
value
=
stringRedisTemplate
.
opsForValue
();
ValueOperations
<
String
,
String
>
value
=
stringRedisTemplate
.
opsForValue
();
for
(
String
key
:
keys
)
{
for
(
String
key
:
keys
)
{
if
(
u
.
getId
().
equals
(
value
.
get
(
key
))){
if
(
u
.
getId
().
equals
(
value
.
get
(
key
))){
...
...
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