Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
db43e7d2
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1433
Star
162
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
db43e7d2
编写于
11月 11, 2021
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
架构公共类修改
上级
0e8ae492
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
13 deletion
+8
-13
skyeye-common/src/main/java/com/skyeye/common/object/InputObject.java
...n/src/main/java/com/skyeye/common/object/InputObject.java
+8
-13
未找到文件。
skyeye-common/src/main/java/com/skyeye/common/object/InputObject.java
浏览文件 @
db43e7d2
...
...
@@ -5,6 +5,8 @@
package
com.skyeye.common.object
;
import
cn.hutool.json.JSONUtil
;
import
com.gexin.fastjson.JSON
;
import
com.gexin.fastjson.JSONObject
;
import
com.skyeye.common.constans.Constants
;
import
com.skyeye.common.util.DateUtil
;
import
com.skyeye.common.util.SpringUtils
;
...
...
@@ -76,7 +78,7 @@ public class InputObject extends PutObject implements Serializable{
if
(
params
==
null
){
String
str
=
GetRequestJsonUtils
.
getRequestJsonString
(
getRequest
());
try
{
Map
<
String
,
Object
>
map
=
JSON
Util
.
toBean
(
str
,
null
);
Map
<
String
,
Object
>
map
=
JSON
Object
.
parseObject
(
str
);
return
setParamsObjToMapReStr
(
sessionKey
,
map
);
}
catch
(
Exception
e
){
Map
<
String
,
Object
>
formMap
=
ToolUtil
.
getUrlParams
(
str
);
...
...
@@ -96,7 +98,6 @@ public class InputObject extends PutObject implements Serializable{
* @return: String
* @throws
*/
@SuppressWarnings
(
"unchecked"
)
private
static
String
checkParamsWebPost
(
String
sessionKey
)
throws
Exception
{
// 获取接口API参数信息
List
<
Map
<
String
,
Object
>>
propertys
=
(
List
<
Map
<
String
,
Object
>>)
Constants
.
REQUEST_MAPPING
.
get
(
sessionKey
).
get
(
"list"
);
...
...
@@ -130,7 +131,6 @@ public class InputObject extends PutObject implements Serializable{
* @return: String
* @throws
*/
@SuppressWarnings
(
"unchecked"
)
private
static
String
checkParamsWebGet
(
String
sessionKey
)
throws
Exception
{
// 获取接口API参数信息
List
<
Map
<
String
,
Object
>>
propertys
=
(
List
<
Map
<
String
,
Object
>>)
Constants
.
REQUEST_MAPPING
.
get
(
sessionKey
).
get
(
"list"
);
...
...
@@ -184,7 +184,6 @@ public class InputObject extends PutObject implements Serializable{
return
stb
.
toString
();
}
@SuppressWarnings
(
"unchecked"
)
private
static
String
setParamsObjToMapReStr
(
String
sessionKey
,
Map
<
String
,
Object
>
formMap
)
throws
Exception
{
List
<
Map
<
String
,
Object
>>
propertys
=
(
List
<
Map
<
String
,
Object
>>)
Constants
.
REQUEST_MAPPING
.
get
(
sessionKey
).
get
(
"list"
);
// 校验通过的入参集合
...
...
@@ -228,7 +227,7 @@ public class InputObject extends PutObject implements Serializable{
}
resultParams
.
put
(
"urlUseJurisdiction"
,
allUse
);
//URL访问权限参数
JedisClientService
jedisClient
=
SpringUtils
.
getBean
(
JedisClientService
.
class
);
jedisClient
.
set
(
requestId
,
JSON
Util
.
toJsonStr
(
resultParams
),
10
);
jedisClient
.
set
(
requestId
,
JSON
.
toJSONString
(
resultParams
),
10
);
}
private
static
Map
<
String
,
Object
>
getRequestParams
(){
...
...
@@ -237,7 +236,7 @@ public class InputObject extends PutObject implements Serializable{
return
null
;
}
JedisClientService
jedisClient
=
SpringUtils
.
getBean
(
JedisClientService
.
class
);
return
JSON
Util
.
toBean
(
jedisClient
.
get
(
requestId
),
null
);
return
JSON
Object
.
parseObject
(
jedisClient
.
get
(
requestId
)
);
}
public
static
Map
<
String
,
Object
>
getMap
()
throws
Exception
{
...
...
@@ -253,7 +252,6 @@ public class InputObject extends PutObject implements Serializable{
* @return
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
Map
<
String
,
Object
>
getLogParams
()
throws
Exception
{
String
userToken
=
GetUserToken
.
getUserToken
(
getRequest
());
JedisClientService
jedisClient
=
SpringUtils
.
getBean
(
JedisClientService
.
class
);
...
...
@@ -266,12 +264,11 @@ public class InputObject extends PutObject implements Serializable{
* @return
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
static
Map
<
String
,
Object
>
getLogParamsStatic
()
throws
Exception
{
String
userToken
=
GetUserToken
.
getUserToken
(
getRequest
());
JedisClientService
jedisClient
=
SpringUtils
.
getBean
(
JedisClientService
.
class
);
// 用户信息
return
JSON
Util
.
toBean
(
jedisClient
.
get
(
"userMation:"
+
userToken
),
null
);
return
JSON
Object
.
parseObject
(
jedisClient
.
get
(
"userMation:"
+
userToken
)
);
}
/**
...
...
@@ -279,11 +276,10 @@ public class InputObject extends PutObject implements Serializable{
* @return
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
Map
<
String
,
Object
>>
getLogDeskTopMenuParams
()
throws
Exception
{
String
userToken
=
GetUserToken
.
getUserToken
(
getRequest
());
JedisClientService
jedisClient
=
SpringUtils
.
getBean
(
JedisClientService
.
class
);
//桌面菜单信息
//
桌面菜单信息
return
JSONUtil
.
toList
(
jedisClient
.
get
(
"deskTopsMation:"
+
userToken
),
null
);
}
...
...
@@ -292,11 +288,10 @@ public class InputObject extends PutObject implements Serializable{
* @return
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
Map
<
String
,
Object
>>
getLogAllMenuParams
()
throws
Exception
{
String
userToken
=
GetUserToken
.
getUserToken
(
getRequest
());
JedisClientService
jedisClient
=
SpringUtils
.
getBean
(
JedisClientService
.
class
);
//所有菜单信息
//
所有菜单信息
return
JSONUtil
.
toList
(
jedisClient
.
get
(
"allMenuMation:"
+
userToken
),
null
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录