Commit 71ec44a5458eee9c01a1419738bbe7386e9954ee
1 parent
1efae4a5
修正在线用户日志记录类型
Showing
2 changed files
with
2 additions
and
4 deletions
ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysUserOnlineController.java
| ... | ... | @@ -82,7 +82,7 @@ public class SysUserOnlineController extends BaseController |
| 82 | 82 | * 强退用户 |
| 83 | 83 | */ |
| 84 | 84 | @PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')") |
| 85 | - @Log(title = "在线用户", businessType = BusinessType.DELETE) | |
| 85 | + @Log(title = "在线用户", businessType = BusinessType.FORCE) | |
| 86 | 86 | @DeleteMapping("/{tokenId}") |
| 87 | 87 | public AjaxResult forceLogout(@PathVariable String tokenId) |
| 88 | 88 | { | ... | ... |
ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java
| ... | ... | @@ -6,7 +6,6 @@ import java.util.concurrent.TimeUnit; |
| 6 | 6 | import javax.servlet.http.HttpServletRequest; |
| 7 | 7 | import org.springframework.beans.factory.annotation.Autowired; |
| 8 | 8 | import org.springframework.beans.factory.annotation.Value; |
| 9 | -import org.springframework.http.MediaType; | |
| 10 | 9 | import org.springframework.stereotype.Component; |
| 11 | 10 | import com.alibaba.fastjson.JSONObject; |
| 12 | 11 | import com.ruoyi.common.constant.Constants; |
| ... | ... | @@ -53,8 +52,7 @@ public class SameUrlDataInterceptor extends RepeatSubmitInterceptor |
| 53 | 52 | public boolean isRepeatSubmit(HttpServletRequest request) |
| 54 | 53 | { |
| 55 | 54 | String nowParams = ""; |
| 56 | - if (request instanceof HttpServletRequest && StringUtils.equalsAnyIgnoreCase(request.getContentType(), | |
| 57 | - MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_JSON_UTF8_VALUE)) | |
| 55 | + if (request instanceof RepeatedlyRequestWrapper) | |
| 58 | 56 | { |
| 59 | 57 | RepeatedlyRequestWrapper repeatedlyRequest = (RepeatedlyRequestWrapper) request; |
| 60 | 58 | nowParams = HttpHelper.getBodyString(repeatedlyRequest); | ... | ... |