From 1dcd0c7882be0a339171887a277a1ab9f5cc182f Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 1 Apr 2024 10:58:37 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=AE=A2=E6=9C=8D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E9=83=BD=E9=9C=80=E8=A6=81=E5=9C=A8=E9=93=BE=E6=8E=A5=E5=90=8E?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E4=B8=AD=E8=8B=B1=E6=96=87=E7=9A=84?= =?UTF-8?q?isZh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/activity/CustomerServiceWebViewActivity.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/main/src/main/java/com/yunbao/main/activity/CustomerServiceWebViewActivity.java b/main/src/main/java/com/yunbao/main/activity/CustomerServiceWebViewActivity.java index e6042a0f2..2a0e111e2 100644 --- a/main/src/main/java/com/yunbao/main/activity/CustomerServiceWebViewActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/CustomerServiceWebViewActivity.java @@ -40,7 +40,9 @@ import com.yunbao.common.utils.JavascriptInterfaceUtils; import com.yunbao.common.utils.L; import com.yunbao.common.utils.RouteUtil; import com.yunbao.common.utils.SVGAViewUtils; +import com.yunbao.common.utils.StringUtil; import com.yunbao.common.utils.ToastUtil; +import com.yunbao.common.utils.WordUtil; import com.yunbao.share.ui.InvitePopDialog; import org.greenrobot.eventbus.Subscribe; @@ -72,7 +74,14 @@ public class CustomerServiceWebViewActivity extends AbsActivity { super.main(); Bus.getOn(this); String url = getIntent().getStringExtra(Constants.URL); - L.e("H5-------->" + url); + if (StringUtil.isEmpty(url)) { + finish(); + return; + } + if (!url.contains("isZh")) { + url += "&isZh=" + (WordUtil.isNewZh() ? 1 : 0); + } + L.e("客服H5-------->" + url); mProgressBar = (ProgressBar) findViewById(R.id.progressbar); rootView = findViewById(R.id.webView_root); mWebView = findViewById(R.id.webView);