This commit is contained in:
duteliang
2024-02-01 00:50:42 +08:00
parent 43be20b11f
commit 574ef6cfdb
6 changed files with 51 additions and 13 deletions

View File

@@ -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);
}
/**
* 内容编码
*