Commit e2672751 authored by litengwei's avatar litengwei

设备平台登陆失效问题

parent 207ad26f
......@@ -71,6 +71,9 @@ public class LoginController {
private String aProduct = "AMOS_STUDIO_WEB";
private String bProduct = "AMOS-WEB-ADMIN";
private String eProduct = "STUDIO_APP_WEB";
@ApiOperation(value = "通过userId登录", notes = "查询设备指标")
......@@ -92,7 +95,11 @@ public class LoginController {
RequestContext.setProduct(product);
String cacheKey = Redis.genKey(new String[]{CacheType.ERASABLE.name(), "SESSION_TOKEN", aProduct, reginParams.getToken()});
boolean hasKey = Redis.getRedisTemplate().hasKey(cacheKey);
if (hasKey) {
String cacheKey1 = Redis.genKey(new String[]{CacheType.ERASABLE.name(), "SESSION_TOKEN", bProduct, reginParams.getToken()});
boolean hasKey1 = Redis.getRedisTemplate().hasKey(cacheKey1);
String cacheKey4 = Redis.genKey(new String[]{CacheType.ERASABLE.name(), "SESSION_TOKEN", eProduct, reginParams.getToken()});
boolean hasKey4 = Redis.getRedisTemplate().hasKey(cacheKey4);
if (hasKey && hasKey1 && hasKey4 ) {
return reginParams;
} else {
logger.info("Auto自动登陆=====:{}", JSON.toJSONString(reginParams));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment