|
@@ -466,18 +466,8 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public WebResourceResponse shouldInterceptRequest(WebView webView, String s) {
|
|
public WebResourceResponse shouldInterceptRequest(WebView webView, String s) {
|
|
|
- if (s.contains("page-error.css")&&getWebUrl().contains("h5.qzone.qq.com")) {
|
|
|
|
|
- List<String> hostList = new ArrayList<>();
|
|
|
|
|
- hostList.add("h5.qzone.qq.com");
|
|
|
|
|
- WebViewUtils.deleteWebViewCookiesForDomains(getContext(),hostList);
|
|
|
|
|
- Log.d("!!!!!!s", "清理了cookie~~~");
|
|
|
|
|
- AndroidSchedulers.mainThread().scheduleDirect(() -> {
|
|
|
|
|
- loadJs("window.location.reload()");
|
|
|
|
|
- /*//鱼死网破
|
|
|
|
|
- needWxLogin = true;
|
|
|
|
|
- kfzsJs.loginThirdPartApp("wx");*/
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ Log.d("!!!!!!", s);
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/*if (url.contains("h5.qzone.qq.com")) {
|
|
/*if (url.contains("h5.qzone.qq.com")) {
|
|
|
Log.d("!!!!!!",s);
|
|
Log.d("!!!!!!",s);
|
|
@@ -487,6 +477,17 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
kfzsJs.loginThirdPartApp("wx");
|
|
kfzsJs.loginThirdPartApp("wx");
|
|
|
}
|
|
}
|
|
|
}*/
|
|
}*/
|
|
|
|
|
+
|
|
|
|
|
+ if (s.contains("pic-error.png") && getWebUrl().contains("h5.qzone.qq.com")) {
|
|
|
|
|
+ List<String> hostList = new ArrayList<>();
|
|
|
|
|
+ hostList.add("h5.qzone.qq.com");
|
|
|
|
|
+ WebViewUtils.deleteWebViewCookiesForDomains(getContext(), hostList);
|
|
|
|
|
+ Log.d("!!!!!!s", "清理了cookie~~~");
|
|
|
|
|
+ AndroidSchedulers.mainThread().scheduleDirect(() -> {
|
|
|
|
|
+ loadJs("window.location.reload()");
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return super.shouldInterceptRequest(webView, s);
|
|
return super.shouldInterceptRequest(webView, s);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -805,7 +806,6 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
for (String key : cookieMap.keySet()) {
|
|
for (String key : cookieMap.keySet()) {
|
|
|
cookieManager.setCookie(host, key + "=" + cookieMap.get(key));
|
|
cookieManager.setCookie(host, key + "=" + cookieMap.get(key));
|
|
|
}
|
|
}
|
|
|
- cookieManager.flush();
|
|
|
|
|
CookieSyncManager.createInstance(getContext()).sync();
|
|
CookieSyncManager.createInstance(getContext()).sync();
|
|
|
if (needWxLogin) {
|
|
if (needWxLogin) {
|
|
|
needWxLogin = false;
|
|
needWxLogin = false;
|