拉黑/封禁用户 触发客服
This commit is contained in:
parent
bf3b249107
commit
6d9e2963d8
|
|
@ -49,6 +49,8 @@ public class AppApiMethodAspect {
|
||||||
@Around("pkg()")
|
@Around("pkg()")
|
||||||
public Object around(ProceedingJoinPoint pjp) throws Throwable {
|
public Object around(ProceedingJoinPoint pjp) throws Throwable {
|
||||||
HttpServletRequest request = HttpContextUtils.getHttpServletRequest();
|
HttpServletRequest request = HttpContextUtils.getHttpServletRequest();
|
||||||
|
String requestUrl = request.getRequestURL().toString();
|
||||||
|
if (!requestUrl.contains("common/")) {
|
||||||
String token = request.getHeader("token");
|
String token = request.getHeader("token");
|
||||||
if (StringUtils.isNotBlank(token)) {
|
if (StringUtils.isNotBlank(token)) {
|
||||||
Claims claims = jwtUtils.getClaimByToken(token);
|
Claims claims = jwtUtils.getClaimByToken(token);
|
||||||
|
|
@ -64,6 +66,7 @@ public class AppApiMethodAspect {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
//避免回填
|
//避免回填
|
||||||
Object[] args = pjp.getArgs();
|
Object[] args = pjp.getArgs();
|
||||||
|
|
@ -90,7 +93,6 @@ public class AppApiMethodAspect {
|
||||||
String value = commonInfoService.findOne(933).getValue();
|
String value = commonInfoService.findOne(933).getValue();
|
||||||
if ("1".equals(value)) {
|
if ("1".equals(value)) {
|
||||||
String method = request.getMethod();
|
String method = request.getMethod();
|
||||||
String requestUrl = request.getRequestURL().toString();
|
|
||||||
long useTime = end - start;
|
long useTime = end - start;
|
||||||
ThreadUtil.execAsync(() -> {
|
ThreadUtil.execAsync(() -> {
|
||||||
//请求的参数
|
//请求的参数
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue