diff --git a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java index 24c2f8dac..3f5a15c81 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java @@ -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);