Message.getListInfo、Message.getLists接口增加app_type字段
This commit is contained in:
parent
9ab0e4ad8d
commit
4244272d00
@ -628,7 +628,8 @@ public interface PDLiveApi {
|
||||
@GET("/api/public/?service=Message.getListInfo")
|
||||
Observable<ResponseModel<List<ListInfoMessageModel>>> getListInfo(
|
||||
@Query("type") String type,
|
||||
@Query("p") int p);
|
||||
@Query("p") int p,
|
||||
@Query("app_type") String app_type);
|
||||
|
||||
/**
|
||||
* 获取主播任务列表
|
||||
|
@ -1175,7 +1175,7 @@ public class LiveNetManager {
|
||||
|
||||
public void getListInfo(String type, int p, HttpCallback<List<ListInfoMessageModel>> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.getListInfo(type, p)
|
||||
.getListInfo(type, p,"PD")
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(listResponseModel -> {
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user