From c0367942e57e81fdc4531a16a5ac281c4affa695 Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Mon, 28 Oct 2024 18:17:46 +0800 Subject: [PATCH] =?UTF-8?q?LiveHDDialogFragment=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=A0=B9=E6=8D=AE=E6=9D=A1=E4=BB=B6=E8=A1=A5?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/dialog/LiveHDDialogFragment.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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() {