1:修改所有和礼物有关系的接口,分别是打赏接口、房间礼物,这个进行修改
2:修改排麦插队礼物,id传0 3:歌单礼物传递的id是100
This commit is contained in:
@@ -2324,8 +2324,14 @@ public class RetrofitClient {
|
||||
});
|
||||
}
|
||||
|
||||
public void getGiftLabel(String have_hot, BaseObserver<List<GiftLabelBean>> observer) {
|
||||
sApiServer.getGiftLabel(have_hot).enqueue(new Callback<BaseModel<List<GiftLabelBean>>>() {
|
||||
/**
|
||||
* 礼物标签表
|
||||
* @param type 1:房间获取标签 2:打赏,不要热度卡 3:
|
||||
* @param observer
|
||||
*/
|
||||
|
||||
public void getGiftLabel(String type, BaseObserver<List<GiftLabelBean>> observer) {
|
||||
sApiServer.getGiftLabel(type).enqueue(new Callback<BaseModel<List<GiftLabelBean>>>() {
|
||||
@Override
|
||||
public void onResponse(Call<BaseModel<List<GiftLabelBean>>> call, Response<BaseModel<List<GiftLabelBean>>> response) {
|
||||
if (response.code() == 200) {
|
||||
@@ -2349,6 +2355,13 @@ public class RetrofitClient {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取礼物列表
|
||||
* @param type 0:只获取热门礼物和普通礼物 99:拍卖卡关系选择礼物 100:歌单礼物
|
||||
* @param roomId
|
||||
* @param observer
|
||||
*/
|
||||
|
||||
public void getGiftList(int type, String roomId, BaseObserver<List<RoonGiftModel>> observer) {
|
||||
sApiServer.getGiftList(type, roomId).enqueue(new Callback<BaseModel<List<RoonGiftModel>>>() {
|
||||
@Override
|
||||
@@ -2363,6 +2376,7 @@ public class RetrofitClient {
|
||||
setCode301(listBaseModel.getMsg());
|
||||
}
|
||||
} else {
|
||||
ToastUtils.showLong("礼物数据错误", response.code());
|
||||
LogUtils.e("getGiftList", response.message());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user