From 4244272d002955011f5ae0d6fbc573e57b420dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Tue, 8 Oct 2024 09:46:49 +0800 Subject: [PATCH] =?UTF-8?q?Message.getListInfo=E3=80=81Message.getLists?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0app=5Ftype=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/com/yunbao/common/http/PDLiveApi.java | 3 ++- .../main/java/com/yunbao/common/http/live/LiveNetManager.java | 2 +- .../yunbao/common/manager/imrongcloud/MessageIMManager.java | 2 ++ live/src/main/java/com/yunbao/live/http/ImHttpUtil.java | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java index cdbdb409e..8e72c9fae 100644 --- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java +++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java @@ -628,7 +628,8 @@ public interface PDLiveApi { @GET("/api/public/?service=Message.getListInfo") Observable>> getListInfo( @Query("type") String type, - @Query("p") int p); + @Query("p") int p, + @Query("app_type") String app_type); /** * 获取主播任务列表 diff --git a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java index a42aa216a..1fcca3bf0 100644 --- a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java +++ b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java @@ -1175,7 +1175,7 @@ public class LiveNetManager { public void getListInfo(String type, int p, HttpCallback> callback) { API.get().pdLiveApi(mContext) - .getListInfo(type, p) + .getListInfo(type, p,"PD") .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(listResponseModel -> { diff --git a/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java b/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java index 734cae4ce..5f6e8dca2 100644 --- a/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java +++ b/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java @@ -104,6 +104,7 @@ public class MessageIMManager { HttpClient.getInstance().get("Message.getLists", "getImUserInfo") .params("uid", userInfo.getId()) .params("token", userInfo.getToken()) + .params("app_type", "PD") .execute(new HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { @@ -167,6 +168,7 @@ public class MessageIMManager { HttpClient.getInstance().get("Message.getLists", "getImUserInfo") .params("uid", userInfo.getId()) .params("token", userInfo.getToken()) + .params("app_type", "PD") .execute(new HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { diff --git a/live/src/main/java/com/yunbao/live/http/ImHttpUtil.java b/live/src/main/java/com/yunbao/live/http/ImHttpUtil.java index dfa65a318..83f073400 100644 --- a/live/src/main/java/com/yunbao/live/http/ImHttpUtil.java +++ b/live/src/main/java/com/yunbao/live/http/ImHttpUtil.java @@ -21,6 +21,7 @@ public class ImHttpUtil { */ public static void getImUserInfo(String uids, HttpCallback callback) { HttpClient.getInstance().get("Message.getLists", ImHttpConsts.GET_IM_USER_INFO) + .params("app_type", "PD") .execute(callback); } @@ -42,6 +43,7 @@ public class ImHttpUtil { HttpClient.getInstance().get("Message.getListInfo", ImHttpConsts.GET_SYSTEM_MESSAGE_LIST) .params("p", p) .params("type", type) + .params("app_type", "PD") .execute(callback); }