Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
push-message
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liucheng
push-message
Commits
eaa23b58
Commit
eaa23b58
authored
Jan 27, 2022
by
renandong
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1,处理看看社保用户gid为空的情况
parent
83787df1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
MenuService.java
src/main/java/com/weface/component/MenuService.java
+4
-3
No files found.
src/main/java/com/weface/component/MenuService.java
View file @
eaa23b58
package
com
.
weface
.
component
;
package
com
.
weface
.
component
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.convert.ConvertException
;
import
cn.hutool.core.convert.ConvertException
;
import
cn.hutool.core.lang.Snowflake
;
import
cn.hutool.core.lang.Snowflake
;
...
@@ -104,7 +105,7 @@ public class MenuService {
...
@@ -104,7 +105,7 @@ public class MenuService {
}
}
return
all
;
return
all
;
}
else
{
}
else
{
log
.
error
(
"
返回值内不包含需要解析的数据"
+
jsonObject
.
toJSONString
());
log
.
error
(
"
看看生活:返回值内不包含需要解析的数据{}"
,
jsonObject
.
toJSONString
());
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -133,7 +134,7 @@ public class MenuService {
...
@@ -133,7 +134,7 @@ public class MenuService {
JSONArray
userTag
=
jsonObject
.
getJSONArray
(
"userTag"
);
JSONArray
userTag
=
jsonObject
.
getJSONArray
(
"userTag"
);
return
getUserTagByTag
(
userTag
,
2
,
tags
);
return
getUserTagByTag
(
userTag
,
2
,
tags
);
}
else
{
}
else
{
log
.
error
(
"
返回值内不包含需要解析的数据"
+
jsonObject
.
toJSONString
());
log
.
error
(
"
看看社保:返回值内不包含需要解析的数据{}"
,
jsonObject
.
toJSONString
());
}
}
return
null
;
return
null
;
}
}
...
@@ -185,7 +186,7 @@ public class MenuService {
...
@@ -185,7 +186,7 @@ public class MenuService {
}
}
//如果调用的是看看生活的用户标签失败时,尝试调取看看社保用户标签
//如果调用的是看看生活的用户标签失败时,尝试调取看看社保用户标签
if
(
type
==
1
)
{
if
(
type
==
1
&&
CollUtil
.
isNotEmpty
(
gidList
)
)
{
List
<
Map
<
String
,
Object
>>
sbTags
=
getSBTags
(
gidList
,
tags
);
List
<
Map
<
String
,
Object
>>
sbTags
=
getSBTags
(
gidList
,
tags
);
if
(
sbTags
!=
null
&&
sbTags
.
size
()
>
0
)
{
if
(
sbTags
!=
null
&&
sbTags
.
size
()
>
0
)
{
userTags
.
addAll
(
sbTags
);
userTags
.
addAll
(
sbTags
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment