fix PK邀请问题:A邀请B,B邀请C,C同意B,B同意A,会都加入到PK中
This commit is contained in:
parent
c20a9804e9
commit
79c730c1b7
@ -11,6 +11,8 @@ import com.yunbao.common.http.LiveHttpUtil;
|
|||||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.utils.AppManager;
|
import com.yunbao.common.utils.AppManager;
|
||||||
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.views.LiveRoomViewHolder;
|
import com.yunbao.live.views.LiveRoomViewHolder;
|
||||||
|
|
||||||
public abstract class AbsLinkMicPkPresenter {
|
public abstract class AbsLinkMicPkPresenter {
|
||||||
@ -115,7 +117,22 @@ public abstract class AbsLinkMicPkPresenter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void isPKTmp(UserBean u) {
|
protected void isPKTmp(UserBean u) {
|
||||||
isPK(u);
|
LiveHttpUtil.livePkCheckLive(IMLoginManager.get(AppManager.getInstance().getMainActivity()).getUserInfo().getId()+"", "", "", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0 && info.length > 0) {
|
||||||
|
JSONObject obj = JSON.parseObject(info[0]);
|
||||||
|
if (obj != null) {
|
||||||
|
if (obj.getString("ispk").equals("0")) {
|
||||||
|
isPK(u);
|
||||||
|
} else {
|
||||||
|
ToastUtil.show(AppManager.getInstance().getMainActivity().getString(R.string.pking_over));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onDRPkApplyTmp(UserBean u) {
|
protected void onDRPkApplyTmp(UserBean u) {
|
||||||
|
Loading…
Reference in New Issue
Block a user