Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
71ec44a5
Commit
71ec44a5
authored
Aug 10, 2020
by
RuoYi
Browse files
修正在线用户日志记录类型
parent
1efae4a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysUserOnlineController.java
View file @
71ec44a5
...
...
@@ -82,7 +82,7 @@ public class SysUserOnlineController extends BaseController
* 强退用户
*/
@PreAuthorize
(
"@ss.hasPermi('monitor:online:forceLogout')"
)
@Log
(
title
=
"在线用户"
,
businessType
=
BusinessType
.
DELET
E
)
@Log
(
title
=
"在线用户"
,
businessType
=
BusinessType
.
FORC
E
)
@DeleteMapping
(
"/{tokenId}"
)
public
AjaxResult
forceLogout
(
@PathVariable
String
tokenId
)
{
...
...
ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java
View file @
71ec44a5
...
...
@@ -6,7 +6,6 @@ import java.util.concurrent.TimeUnit;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.MediaType
;
import
org.springframework.stereotype.Component
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ruoyi.common.constant.Constants
;
...
...
@@ -53,8 +52,7 @@ public class SameUrlDataInterceptor extends RepeatSubmitInterceptor
public
boolean
isRepeatSubmit
(
HttpServletRequest
request
)
{
String
nowParams
=
""
;
if
(
request
instanceof
HttpServletRequest
&&
StringUtils
.
equalsAnyIgnoreCase
(
request
.
getContentType
(),
MediaType
.
APPLICATION_JSON_VALUE
,
MediaType
.
APPLICATION_JSON_UTF8_VALUE
))
if
(
request
instanceof
RepeatedlyRequestWrapper
)
{
RepeatedlyRequestWrapper
repeatedlyRequest
=
(
RepeatedlyRequestWrapper
)
request
;
nowParams
=
HttpHelper
.
getBodyString
(
repeatedlyRequest
);
...
...
Write
Preview
Supports
Markdown
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