add[声望升级-游戏房判断声网或者融云]

This commit is contained in:
Martin
2024-05-22 13:32:05 +08:00
parent 3167ab0be8
commit dc0ae1124f
12 changed files with 135 additions and 529 deletions

View File

@@ -2,6 +2,7 @@ package com.yunbao.common.bean;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.yunbao.common.BuildConfig;
public class CheckLiveModel extends BaseModel {

View File

@@ -2,6 +2,7 @@ package com.yunbao.common.bean;
import com.alibaba.fastjson.annotation.JSONField;
import com.google.gson.annotations.SerializedName;
import com.yunbao.common.BuildConfig;
import com.yunbao.common.utils.StringUtil;
import java.util.Arrays;
@@ -60,8 +61,8 @@ public class ConfigBean extends BaseModel {
private String txPlayUgcLicenceUrl;//腾讯短视频鉴权
private String txVideoUgcKey;
private String google_isup;
@SerializedName("sud_game_speech")//0否1是
private String sudGameSpeech;
private String sud_game_speech;
@SerializedName("is_return_user")//是否需要弹窗0否1是
private String isReturnUser="";
@@ -186,22 +187,18 @@ public class ConfigBean extends BaseModel {
'}';
}
public boolean isSw(){
if(StringUtil.isEmpty(sudGameSpeech)){
return false;
}else if(sudGameSpeech.equals("1")){
return true;
}else{
return false;
}
return getSud_game_speech().equals("1");
}
public String getSudGameSpeech() {
return sudGameSpeech;
@JSONField(name = "sud_game_speech")
public String getSud_game_speech() {
return sud_game_speech;
}
public void setSudGameSpeech(String sudGameSpeech) {
this.sudGameSpeech = sudGameSpeech;
public void setSud_game_speech(String sud_game_speech) {
this.sud_game_speech = sud_game_speech;
}
@JSONField(name = "apk_ver")

View File

@@ -108,9 +108,9 @@ public class SudGameListViewHolder extends RecyclerView.ViewHolder {
if (isHome) {
if (TextUtils.equals(model.getLiveUid(), "0")) {
if(CommonAppConfig.getInstance().getConfig().isSw()){
RouteUtil.forwardSwSudGameActivity(new Gson().toJson(data),true,isHome);
RouteUtil.forwardSwSudGameActivity(new Gson().toJson(createSudRoomModel),true,isHome);
}else{
RouteUtil.forwardRySudGameActivity(new Gson().toJson(data),true,isHome);
RouteUtil.forwardRySudGameActivity(new Gson().toJson(createSudRoomModel),true,isHome);
}
} else {
String yes = "";