Commit c4160606 authored by litengwei's avatar litengwei

设备平台登陆失效问题

parent 448618ac
......@@ -70,6 +70,11 @@ public class LoginController {
private String appKey;
private String aProduct = "AMOS_STUDIO_WEB";
private String bProduct = "AMOS-WEB-ADMIN";
private String cProduct = "STUDIO_APP_3D";
private String dProduct = "STUDIO_APP_MOBILE";
private String eProduct = "STUDIO_APP_WEB";
private String fProduct = "YHPATROL_WEB";
......@@ -92,7 +97,17 @@ 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 cacheKey2 = Redis.genKey(new String[]{CacheType.ERASABLE.name(), "SESSION_TOKEN", cProduct, reginParams.getToken()});
boolean hasKey2 = Redis.getRedisTemplate().hasKey(cacheKey2);
String cacheKey3 = Redis.genKey(new String[]{CacheType.ERASABLE.name(), "SESSION_TOKEN", dProduct, reginParams.getToken()});
boolean hasKey3 = Redis.getRedisTemplate().hasKey(cacheKey3);
String cacheKey4 = Redis.genKey(new String[]{CacheType.ERASABLE.name(), "SESSION_TOKEN", eProduct, reginParams.getToken()});
boolean hasKey4 = Redis.getRedisTemplate().hasKey(cacheKey4);
String cacheKey5 = Redis.genKey(new String[]{CacheType.ERASABLE.name(), "SESSION_TOKEN", fProduct, reginParams.getToken()});
boolean hasKey5 = Redis.getRedisTemplate().hasKey(cacheKey5);
if (hasKey && hasKey1 && hasKey2 && hasKey3 && hasKey4 && hasKey5) {
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