Commit eaa23b58 authored by renandong's avatar renandong 🇨🇳

1,处理看看社保用户gid为空的情况

parent 83787df1
package com.weface.component;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.convert.ConvertException;
import cn.hutool.core.lang.Snowflake;
......@@ -104,7 +105,7 @@ public class MenuService {
}
return all;
} else {
log.error("返回值内不包含需要解析的数据" + jsonObject.toJSONString());
log.error("看看生活:返回值内不包含需要解析的数据{}", jsonObject.toJSONString());
}
} catch (Exception e) {
e.printStackTrace();
......@@ -133,7 +134,7 @@ public class MenuService {
JSONArray userTag = jsonObject.getJSONArray("userTag");
return getUserTagByTag(userTag, 2, tags);
} else {
log.error("返回值内不包含需要解析的数据" + jsonObject.toJSONString());
log.error("看看社保:返回值内不包含需要解析的数据{}", jsonObject.toJSONString());
}
return null;
}
......@@ -185,7 +186,7 @@ public class MenuService {
}
//如果调用的是看看生活的用户标签失败时,尝试调取看看社保用户标签
if (type == 1) {
if (type == 1 && CollUtil.isNotEmpty(gidList)) {
List<Map<String, Object>> sbTags = getSBTags(gidList, tags);
if (sbTags != null && sbTags.size() > 0) {
userTags.addAll(sbTags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment