Commit 167d50d1 by 魏建枢

增加用户信息集合

parent dbcff958
...@@ -187,4 +187,18 @@ public class InterceptorDataFormatUtil { ...@@ -187,4 +187,18 @@ public class InterceptorDataFormatUtil {
return arrayList; return arrayList;
} }
public static List<String> userListDataFormat(JSONObject jsonObj) {
List<String> arrayList = new ArrayList<>();
arrayList.add(jsonObj.getString("cid"));
arrayList.add(jsonObj.getString("third_id"));
arrayList.add(jsonObj.getString("country_code"));
arrayList.add(jsonObj.getString("phone_number"));
arrayList.add(jsonObj.getString("nick"));
arrayList.add(jsonObj.getString("register_time"));
arrayList.add(jsonObj.getString("user_state"));
arrayList.add(jsonObj.getString("user_head_url"));
arrayList.add(jsonObj.getString("create_time"));
return arrayList;
}
} }
...@@ -39,6 +39,8 @@ public class InterceptorSelector { ...@@ -39,6 +39,8 @@ public class InterceptorSelector {
return dataSplit(InterceptorDataFormatUtil.userInfoDataFormat(jsonObj)); return dataSplit(InterceptorDataFormatUtil.userInfoDataFormat(jsonObj));
}else if(StringUtils.equals(flume_type, "groupChatHistory")) { }else if(StringUtils.equals(flume_type, "groupChatHistory")) {
return dataSplit(InterceptorDataFormatUtil.groupChatHistoryDataFormat(jsonObj)); return dataSplit(InterceptorDataFormatUtil.groupChatHistoryDataFormat(jsonObj));
}else if(StringUtils.equals(flume_type, "userInfoList")) {
return dataSplit(InterceptorDataFormatUtil.userListDataFormat(jsonObj));
} }
return resultStr; return resultStr;
} }
......
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 sign in to comment