|
@@ -176,23 +176,23 @@ public class SystemConstant {
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
calendar.setTime(now);
|
|
|
Long redisExpire = REDIS_EXPIRE_TIME;
|
|
|
- if (platform.getSource().contains(Source.admin_web.name())) {
|
|
|
+ if (platform.getSource().contains(Source.ADMIN_WEB.name())) {
|
|
|
calendar.add(Calendar.DAY_OF_YEAR, SystemConstant.WEB_SESSION_EXPIRE);
|
|
|
} else if (Objects.equals(platform.name(), Platform.win.name()) &&
|
|
|
- (platform.getSource().contains(Source.admin_client.name()) || platform.getSource().contains(Source.oe_client.name()))) {
|
|
|
+ (platform.getSource().contains(Source.ADMIN_CLIENT.name()) || platform.getSource().contains(Source.OE_CLIENT.name()))) {
|
|
|
calendar.add(Calendar.DAY_OF_YEAR, SystemConstant.WIN_SESSION_EXPIRE);
|
|
|
} else if (Objects.equals(platform.name(), Platform.mac.name()) &&
|
|
|
- (platform.getSource().contains(Source.admin_client.name()) || platform.getSource().contains(Source.oe_client.name()))) {
|
|
|
+ (platform.getSource().contains(Source.ADMIN_CLIENT.name()) || platform.getSource().contains(Source.OE_CLIENT.name()))) {
|
|
|
calendar.add(Calendar.DAY_OF_YEAR, SystemConstant.MAC_SESSION_EXPIRE);
|
|
|
- } else if (platform.getSource().contains(Source.oe_answer.name())) {
|
|
|
+ } else if (platform.getSource().contains(Source.OE_ANSWER.name())) {
|
|
|
calendar.add(Calendar.DAY_OF_YEAR, SystemConstant.WXAPP_SESSION_EXPIRE);
|
|
|
redisExpire = REDIS_PHONE_EXPIRE_TIME;
|
|
|
} else if (Objects.equals(platform.name(), Platform.ios.name()) &&
|
|
|
- (platform.getSource().contains(Source.oe_answer.name()) || platform.getSource().contains(Source.mobile_monitor_first.name()) || platform.getSource().contains(Source.mobile_monitor_second.name()))) {
|
|
|
+ (platform.getSource().contains(Source.OE_ANSWER.name()) || platform.getSource().contains(Source.MOBILE_FIRST.name()) || platform.getSource().contains(Source.MOBILE_SECOND.name()))) {
|
|
|
calendar.add(Calendar.DAY_OF_YEAR, SystemConstant.IOS_SESSION_EXPIRE);
|
|
|
redisExpire = REDIS_PHONE_EXPIRE_TIME;
|
|
|
} else if (Objects.equals(platform.name(), Platform.android.name()) &&
|
|
|
- (platform.getSource().contains(Source.oe_answer.name()) || platform.getSource().contains(Source.mobile_monitor_first.name()) || platform.getSource().contains(Source.mobile_monitor_second.name()))) {
|
|
|
+ (platform.getSource().contains(Source.OE_ANSWER.name()) || platform.getSource().contains(Source.MOBILE_FIRST.name()) || platform.getSource().contains(Source.MOBILE_SECOND.name()))) {
|
|
|
calendar.add(Calendar.DAY_OF_YEAR, SystemConstant.ANDROID_SESSION_EXPIRE);
|
|
|
redisExpire = REDIS_PHONE_EXPIRE_TIME;
|
|
|
}
|