init
This commit is contained in:
@@ -20,9 +20,11 @@ import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.attribute.FileTime;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* 客户端工具类
|
||||
@@ -32,6 +34,8 @@ import java.util.Map;
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class ServletUtils extends ServletUtil {
|
||||
|
||||
private final static String HEAD_UUID = "uuid";
|
||||
|
||||
/**
|
||||
* 获取String参数
|
||||
*/
|
||||
@@ -172,6 +176,10 @@ public class ServletUtils extends ServletUtil {
|
||||
return getClientIP(getRequest());
|
||||
}
|
||||
|
||||
public static String getImei(){
|
||||
return getRequest().getHeader(HEAD_UUID);
|
||||
}
|
||||
|
||||
/**
|
||||
* 内容编码
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user