|
|
@@ -466,10 +466,11 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
|
|
|
@Override
|
|
|
public WebResourceResponse shouldInterceptRequest(WebView webView, String s) {
|
|
|
- if (s.contains("page-error.css")&&getWebUrl().contains("h5.qzone.qq.com")) {
|
|
|
+ Log.d("!!!!!!!", s);
|
|
|
+ if (s.contains("page-error.css") && s.contains("h5.qzone.qq.com")) {
|
|
|
List<String> hostList = new ArrayList<>();
|
|
|
hostList.add("h5.qzone.qq.com");
|
|
|
- WebViewUtils.deleteWebViewCookiesForDomains(getContext(),hostList);
|
|
|
+ WebViewUtils.deleteWebViewCookiesForDomains(getContext(), hostList);
|
|
|
Log.d("!!!!!!s", "清理了cookie~~~");
|
|
|
AndroidSchedulers.mainThread().scheduleDirect(() -> {
|
|
|
loadJs("window.location.reload()");
|