add 客服页面都需要在链接后加一个中英文的isZh

This commit is contained in:
zlzw 2024-04-01 10:58:37 +08:00
parent 962a07d6d1
commit 1dcd0c7882

View File

@ -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);