Message.getListInfo、Message.getLists接口增加app_type字段

This commit is contained in:
老皮 2024-10-08 09:46:49 +08:00
parent 9ab0e4ad8d
commit 4244272d00
4 changed files with 7 additions and 2 deletions

View File

@ -628,7 +628,8 @@ public interface PDLiveApi {
@GET("/api/public/?service=Message.getListInfo") @GET("/api/public/?service=Message.getListInfo")
Observable<ResponseModel<List<ListInfoMessageModel>>> getListInfo( Observable<ResponseModel<List<ListInfoMessageModel>>> getListInfo(
@Query("type") String type, @Query("type") String type,
@Query("p") int p); @Query("p") int p,
@Query("app_type") String app_type);
/** /**
* 获取主播任务列表 * 获取主播任务列表

View File

@ -1175,7 +1175,7 @@ public class LiveNetManager {
public void getListInfo(String type, int p, HttpCallback<List<ListInfoMessageModel>> callback) { public void getListInfo(String type, int p, HttpCallback<List<ListInfoMessageModel>> callback) {
API.get().pdLiveApi(mContext) API.get().pdLiveApi(mContext)
.getListInfo(type, p) .getListInfo(type, p,"PD")
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe(listResponseModel -> { .subscribe(listResponseModel -> {

View File

@ -104,6 +104,7 @@ public class MessageIMManager {
HttpClient.getInstance().get("Message.getLists", "getImUserInfo") HttpClient.getInstance().get("Message.getLists", "getImUserInfo")
.params("uid", userInfo.getId()) .params("uid", userInfo.getId())
.params("token", userInfo.getToken()) .params("token", userInfo.getToken())
.params("app_type", "PD")
.execute(new HttpCallback() { .execute(new HttpCallback() {
@Override @Override
public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {
@ -167,6 +168,7 @@ public class MessageIMManager {
HttpClient.getInstance().get("Message.getLists", "getImUserInfo") HttpClient.getInstance().get("Message.getLists", "getImUserInfo")
.params("uid", userInfo.getId()) .params("uid", userInfo.getId())
.params("token", userInfo.getToken()) .params("token", userInfo.getToken())
.params("app_type", "PD")
.execute(new HttpCallback() { .execute(new HttpCallback() {
@Override @Override
public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {

View File

@ -21,6 +21,7 @@ public class ImHttpUtil {
*/ */
public static void getImUserInfo(String uids, HttpCallback callback) { public static void getImUserInfo(String uids, HttpCallback callback) {
HttpClient.getInstance().get("Message.getLists", ImHttpConsts.GET_IM_USER_INFO) HttpClient.getInstance().get("Message.getLists", ImHttpConsts.GET_IM_USER_INFO)
.params("app_type", "PD")
.execute(callback); .execute(callback);
} }
@ -42,6 +43,7 @@ public class ImHttpUtil {
HttpClient.getInstance().get("Message.getListInfo", ImHttpConsts.GET_SYSTEM_MESSAGE_LIST) HttpClient.getInstance().get("Message.getListInfo", ImHttpConsts.GET_SYSTEM_MESSAGE_LIST)
.params("p", p) .params("p", p)
.params("type", type) .params("type", type)
.params("app_type", "PD")
.execute(callback); .execute(callback);
} }