update:修改新人特惠的URL逻辑
This commit is contained in:
parent
9efc1f4942
commit
8a2e7afc6c
@ -61,7 +61,6 @@ import org.greenrobot.eventbus.ThreadMode;
|
||||
import java.util.Locale;
|
||||
|
||||
import io.reactivex.android.schedulers.AndroidSchedulers;
|
||||
import io.reactivex.functions.Consumer;
|
||||
import io.reactivex.schedulers.Schedulers;
|
||||
|
||||
/**
|
||||
@ -377,7 +376,14 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
||||
NewPeopleInfo peopleInfo = stringResponseModel.getData().getInfo();
|
||||
if (peopleInfo.getIsShow()) {
|
||||
liveNewPeople.setVisibility(View.VISIBLE);
|
||||
newPeopleUrl = peopleInfo.getLink();
|
||||
if(peopleInfo.getLink().startsWith("http")){
|
||||
newPeopleUrl = peopleInfo.getLink();
|
||||
if(!newPeopleUrl.contains("?")){
|
||||
newPeopleUrl+="?";
|
||||
}
|
||||
}else {
|
||||
newPeopleUrl = CommonAppConfig.HOST + peopleInfo.getLink();
|
||||
}
|
||||
}
|
||||
}, Throwable::printStackTrace).isDisposed();
|
||||
}
|
||||
@ -410,7 +416,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
||||
showTrickeryDialog();
|
||||
}else if (i==R.id.live_new_people){
|
||||
Bundle bundle=new Bundle();
|
||||
String url= newPeopleUrl+"?g=Appapi&m=Turntable&a=tricky";
|
||||
String url= newPeopleUrl+"&g=Appapi&m=Turntable&a=tricky";
|
||||
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
||||
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid;
|
||||
bundle.putString("url", url);
|
||||
|
Loading…
Reference in New Issue
Block a user