新增主播端 获取活动悬浮窗状态的接口:Live.getAnchorActiveImgStatus,替换原有的接口:Rank.isActivity,
This commit is contained in:
parent
6095d2d04a
commit
5b0f5f03ab
@ -906,7 +906,11 @@ public class LiveHttpUtil {
|
||||
.params("anchorUid", anchor_id)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
public static void getAnchorActiveImgStatus(String anchor_id, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Live.getAnchorActiveImgStatus", LiveHttpConsts.GET_EVENT)
|
||||
.params("anchorUid", anchor_id)
|
||||
.execute(callback);
|
||||
}
|
||||
/**
|
||||
* 重置活动
|
||||
*/
|
||||
|
@ -2179,7 +2179,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
|
||||
public void setLiveUid(String liveUid) {
|
||||
mLiveUid = liveUid;
|
||||
LiveHttpUtil.geteEvent(mLiveUid, new HttpCallback() {
|
||||
LiveHttpUtil.getAnchorActiveImgStatus(mLiveUid, new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0 && imgEvent != null) {
|
||||
|
@ -438,7 +438,7 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
||||
}
|
||||
|
||||
public void setLiveUid(String liveUid) {
|
||||
LiveHttpUtil.geteEvent(liveUid, new HttpCallback() {
|
||||
LiveHttpUtil.getAnchorActiveImgStatus(liveUid, new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user