修改多人PK结束PK送礼仍然展示PK结束画面问题
This commit is contained in:
parent
894e264fb3
commit
cd0067d77b
@ -537,4 +537,9 @@ public interface PDLiveApi {
|
||||
Observable<ResponseModel<LiveStetUpStatusModel>> getLiveStetUpStatus(
|
||||
@Query("liveuid") String liveUid
|
||||
);
|
||||
|
||||
@GET("/api/public/?service=live.jieshuDRPK")
|
||||
Observable<ResponseModel<BaseModel>> jieshuDRPK(
|
||||
@Query("roomid") String roomId,
|
||||
@Query("uid") String uid);
|
||||
}
|
||||
|
@ -1063,6 +1063,18 @@ public class LiveNetManager {
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void jieshuDRPK(String uID) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.jieshuDRPK(uID, uID)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(baseModelResponseModel -> {
|
||||
|
||||
}, throwable -> {
|
||||
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
/**
|
||||
* 直播间取消网络请求
|
||||
*/
|
||||
|
@ -163,6 +163,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
public static int backIndex = 0;//0=未判断,1=已判断
|
||||
private FaceManager manager;
|
||||
private ImageView leave_img;
|
||||
|
||||
private final RandomPkManager.OnRandomPkTimer onRandomPkTimer = new RandomPkManager.OnRandomPkTimer() {
|
||||
@Override
|
||||
public void onTimer(String time) {
|
||||
@ -422,6 +423,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
public void onSuccess(Message message) {
|
||||
isDRPK = 1;
|
||||
btn_start_dr_pk_view.setVisibility(View.VISIBLE);
|
||||
mLiveRyLinkMicPkPresenter.setDRInitiator(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -155,6 +155,12 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
||||
|
||||
public static List<RCRTCInputStream> inputStreamList = new ArrayList<>();
|
||||
public static List<RCRTCInputStream> inputStreamList1 = new ArrayList<>();
|
||||
private boolean DRInitiator = false;//是否是duorenPK发起人
|
||||
|
||||
public LiveRyLinkMicPkPresenter setDRInitiator(boolean DRInitiator) {
|
||||
this.DRInitiator = DRInitiator;
|
||||
return this;
|
||||
}
|
||||
|
||||
private IRCRTCOtherRoomEventsListener otherRoomEventsListener = new IRCRTCOtherRoomEventsListener() {
|
||||
|
||||
@ -2457,7 +2463,6 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
||||
* 更新Pk分数
|
||||
*/
|
||||
public void upDataPkScore(JSONArray pkScores, String uid, int time) {
|
||||
if (time <= 0) return;
|
||||
String userID1 = (String) imageGrade1.getTag();
|
||||
String userID2 = (String) imageGrade2.getTag();
|
||||
String userID4 = (String) imageGrade4.getTag();
|
||||
@ -2669,6 +2674,9 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.PK_TIME_COUNT));
|
||||
// endDRGif();
|
||||
if (DRInitiator) {
|
||||
LiveNetManager.get(mContext).jieshuDRPK("" + IMLoginManager.get(mContext).getUserInfo().getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user