Explorar el Código

fix b token

release_toaliyun_real
winter hace 2 años
padre
commit
7569aa4502
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. +0
    -2
      mallinkBApi/src/main/java/com/iformall/interceptor/AuthorizationInterceptor.java

+ 0
- 2
mallinkBApi/src/main/java/com/iformall/interceptor/AuthorizationInterceptor.java Ver fichero

@@ -87,7 +87,6 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
String tenantId = null;
String parenTenantId = null;
if (StringUtils.isNotBlank(token)) {
logger.info("token >>>>> "+token);
BaseCUserEntity user = cUserTokenService.getBByToken(token);
if (user == null || user.getExpireTime().getTime() < System.currentTimeMillis()) {
throw new MallinkException(ErrorCode.NET_TOKEN_INVALID.getCode(), "URL:" + request.getRequestURL() + " token失效,请重新登录");
@@ -98,7 +97,6 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
buser = wxMerchantBUserService.getById(user.getUserId());
}
}else if (StringUtils.isNotBlank(bid)) {
logger.info("bid >>>>> "+bid);
buser = wxMerchantBUserService.getById(Long.parseLong(bid));
}



Cargando…
Cancelar
Guardar