Commit 11c2e913 by fudahua

企业为西标签fix

parent ea88004b
......@@ -509,17 +509,13 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
private Map<String, Set<String>> getExternalTagMap(String externalUseridInfo) {
Map<String, Set<String>> ret = new HashMap<>();
JSONObject jsonObject = JSONObject.parseObject(externalUseridInfo);
if (!jsonObject.containsKey("external_contact")) {
logger.info("用户信息不存在");
return null;
}
JSONObject externalContact = jsonObject.getJSONObject("external_contact");
if (!externalContact.containsKey("follow_user")) {
if (!jsonObject.containsKey("follow_user")) {
logger.info("没有相关的好友");
return null;
}
JSONArray followUser = externalContact.getJSONArray("follow_user");
JSONArray followUser = jsonObject.getJSONArray("follow_user");
for (int i = 0; i < followUser.size(); i++) {
JSONObject midUser = followUser.getJSONObject(i);
String wxUserId = midUser.getString("userid");
......
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