解决ip解析的问题
This commit is contained in:
parent
14a862e025
commit
9b2698d919
|
|
@ -62,7 +62,12 @@ public class LoginInterceptor implements HandlerInterceptor {
|
|||
int start = url.indexOf("//");
|
||||
url = url.substring(start + 2);
|
||||
int end = url.indexOf("/");
|
||||
return url.substring(0, end);
|
||||
String tmp = url.substring(0, end);
|
||||
if (!tmp.contains(":")) {
|
||||
return tmp;
|
||||
}
|
||||
int index = tmp.indexOf(":");
|
||||
return tmp.substring(0, index);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -35,8 +35,4 @@ public interface UserConstants {
|
|||
String LOGIN_USER_ID = "userId";
|
||||
String LOGIN_ADMIN_TYPE = "adminType";
|
||||
|
||||
/**
|
||||
* 管理员账号
|
||||
*/
|
||||
String ADMIN_WORK_NUMBER = "100000";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue