diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveHDDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveHDDialogFragment.java index 67d15e132..a1168ac27 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveHDDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveHDDialogFragment.java @@ -191,7 +191,16 @@ public class LiveHDDialogFragment extends AbsDialogFragment { mWebView.setLayoutParams(params); } String url = bundle.getString("url"); - url += "&anchorUid=" + mLiveUid+"&stream="+mStream+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0); + //url += "&anchorUid=" + mLiveUid+"&stream="+mStream+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0); + if (!url.contains("anchorUid")){ + url +="&anchorUid=" + mLiveUid; + } + if (!url.contains("stream")){ + url +="&stream="+mStream; + } + if (!url.contains("isZh")){ + url +="&isZh=" + (WordUtil.isNewZh() ? "1" : 0); + } Log.e("H5--半屏",url); mWebView.loadUrl(url); mWebView.setWebViewClient(new WebViewClient() {