Commit e00eb1c9 by 魏建枢

生成拦截器

parent 167d50d1
...@@ -200,5 +200,11 @@ public class InterceptorDataFormatUtil { ...@@ -200,5 +200,11 @@ public class InterceptorDataFormatUtil {
arrayList.add(jsonObj.getString("create_time")); arrayList.add(jsonObj.getString("create_time"));
return arrayList; return arrayList;
} }
public static List<String> userInvitationDataFormat(JSONObject jsonObj) {
List<String> arrayList = new ArrayList<>();
arrayList.add(jsonObj.getString("data"));
return arrayList;
}
} }
...@@ -41,6 +41,8 @@ public class InterceptorSelector { ...@@ -41,6 +41,8 @@ public class InterceptorSelector {
return dataSplit(InterceptorDataFormatUtil.groupChatHistoryDataFormat(jsonObj)); return dataSplit(InterceptorDataFormatUtil.groupChatHistoryDataFormat(jsonObj));
}else if(StringUtils.equals(flume_type, "userInfoList")) { }else if(StringUtils.equals(flume_type, "userInfoList")) {
return dataSplit(InterceptorDataFormatUtil.userListDataFormat(jsonObj)); return dataSplit(InterceptorDataFormatUtil.userListDataFormat(jsonObj));
}else if(StringUtils.equals(flume_type, "userInvitation")) {
return dataSplit(InterceptorDataFormatUtil.userInvitationDataFormat(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