Compare commits
No commits in common. "0c0cde840670fa30c58a26ab3006cde0ff317cb0" and "8edbff5ac10a8b7a1b106cb14e602acc43baa396" have entirely different histories.
0c0cde8406
...
8edbff5ac1
@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Fri Jun 13 01:41:24 GMT 2025
|
#Thu Jun 12 02:46:36 HKT 2025
|
||||||
stageCount=6
|
stageCount=6
|
||||||
libraryProject=
|
libraryProject=
|
||||||
baseVersion=15.0
|
baseVersion=15.0
|
||||||
publishVersion=15.0.5
|
publishVersion=15.0.5
|
||||||
buildCount=1
|
buildCount=0
|
||||||
baseBetaVersion=15.0.6
|
baseBetaVersion=15.0.6
|
||||||
|
@ -6,7 +6,6 @@ package cc.winboll.studio.webpagesources.common;
|
|||||||
* @Describe 网站登录验证工具类
|
* @Describe 网站登录验证工具类
|
||||||
*/
|
*/
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import cc.winboll.studio.libappbase.LogUtils;
|
|
||||||
import cc.winboll.studio.libappbase.dialogs.YesNoAlertDialog;
|
import cc.winboll.studio.libappbase.dialogs.YesNoAlertDialog;
|
||||||
import cc.winboll.studio.webpagesources.models.AuthenticationBean;
|
import cc.winboll.studio.webpagesources.models.AuthenticationBean;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -23,11 +22,10 @@ public class AuthenticationUtils {
|
|||||||
|
|
||||||
AuthenticationUtils(Context context) {
|
AuthenticationUtils(Context context) {
|
||||||
mContext = context;
|
mContext = context;
|
||||||
File beanDir = new File(context.getFilesDir(), "home" + File.separator + TAG);
|
File beanDir = new File(context.getDataDir(), TAG);
|
||||||
if (!beanDir.exists()) {
|
if (!beanDir.exists()) {
|
||||||
beanDir.mkdirs();
|
beanDir.mkdirs();
|
||||||
}
|
}
|
||||||
LogUtils.d(TAG, String.format("beanDir %s", beanDir.toString()));
|
|
||||||
_mBeanPath = beanDir.getPath() + "/" + AuthenticationBean.class.getName() + ".json";
|
_mBeanPath = beanDir.getPath() + "/" + AuthenticationBean.class.getName() + ".json";
|
||||||
mData = new ArrayList<AuthenticationBean>();
|
mData = new ArrayList<AuthenticationBean>();
|
||||||
AuthenticationBean.loadBeanListFromFile(_mBeanPath, mData, AuthenticationBean.class);
|
AuthenticationBean.loadBeanListFromFile(_mBeanPath, mData, AuthenticationBean.class);
|
||||||
|
@ -37,7 +37,6 @@ import cc.winboll.studio.webpagesources.R;
|
|||||||
import cc.winboll.studio.webpagesources.thread.LinkDownLoadThread;
|
import cc.winboll.studio.webpagesources.thread.LinkDownLoadThread;
|
||||||
import cc.winboll.studio.webpagesources.util.UIUtil;
|
import cc.winboll.studio.webpagesources.util.UIUtil;
|
||||||
import cc.winboll.studio.webpagesources.view.ItemLongClickedPopWindow;
|
import cc.winboll.studio.webpagesources.view.ItemLongClickedPopWindow;
|
||||||
import com.hjq.toast.ToastUtils;
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
@ -310,13 +309,7 @@ public class BaseWebView extends WebView {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
|
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
|
||||||
//SSL证书错误修复方法:
|
LogUtils.d(TAG, "onReceivedSslError 0\nerror : " + error.toString());
|
||||||
//网站证书下载网站是https://www.ssleye.com/ssltool/certs_down.html
|
|
||||||
//使用该网站访问要获取证书的主机
|
|
||||||
//获取证书后导出证书到 res/raw/<标识名称>.cer
|
|
||||||
//再在res/xml/network_security_config.xml配置网站证书设置。
|
|
||||||
ToastUtils.show("SSL证书错误!");
|
|
||||||
LogUtils.d(TAG, "SSL证书错误! onReceivedSslError 0\nerror : " + error.toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIIGZDCCBUygAwIBAgIMOwCrRmG0Wi0jBsKXMA0GCSqGSIb3DQEBCwUAMFUxCzAJ
|
|
||||||
BgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSswKQYDVQQDEyJH
|
|
||||||
bG9iYWxTaWduIEdDQyBSNiBBbHBoYVNTTCBDQSAyMDIzMB4XDTI0MDkxNTA2NTY1
|
|
||||||
NVoXDTI1MTAxNzA2NTY1NFowGzEZMBcGA1UEAwwQKi5zdGF0aWNmaWxlLm9yZzCC
|
|
||||||
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALydYBhogMuljWzzVydKnNXd
|
|
||||||
1QgbSsTM72cf+bhEZT8achjVkiPgrekfXQEMaVcdSeicDjFpC/PmNQnJStWnCr4a
|
|
||||||
nybDu65PV2uk0eDpcGDDBeExf7O4I8i9C/yzm5nvhFQQrlr9iWK2pW+ytiUefsSA
|
|
||||||
Yq8r+e63UNafv2ShaeKx/APiD5CfD4e2fQJzQkodbPiReaZaG3tTj+gZw1iME1wF
|
|
||||||
3Fd1WFgn3E7d93iy4LR45073pt+W/qD899iOc+o6kic+xFG+UjsBsfwKmzYZO75A
|
|
||||||
qad3TxtNkwHM3LWxttyQbckOQRlLjEMN0hZ2GpJ36sHeC/WyVGsDogitvllJ+KUC
|
|
||||||
AwEAAaOCA2wwggNoMA4GA1UdDwEB/wQEAwIFoDAMBgNVHRMBAf8EAjAAMIGZBggr
|
|
||||||
BgEFBQcBAQSBjDCBiTBJBggrBgEFBQcwAoY9aHR0cDovL3NlY3VyZS5nbG9iYWxz
|
|
||||||
aWduLmNvbS9jYWNlcnQvZ3NnY2NyNmFscGhhc3NsY2EyMDIzLmNydDA8BggrBgEF
|
|
||||||
BQcwAYYwaHR0cDovL29jc3AuZ2xvYmFsc2lnbi5jb20vZ3NnY2NyNmFscGhhc3Ns
|
|
||||||
Y2EyMDIzMF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NrbJ5ArwZ
|
|
||||||
9oI2mu9I0pfZGhCFB3v6T8YTDNMnEq4JR0tngbrbrP5zbpbhNJwwvEA8uzbYClan
|
|
||||||
axEOf4f3besEyPwKAq8yZUqYDLSTNjT+f0xnVNxOBElA5r5zo18Pw0nqATdfrezC
|
|
||||||
U+CoejR8lk4RRvg0zPda8f+OhYP3ERbZ0Cm2YDJtVT59+Idyp2BbzCpsRJPLvjlt
|
|
||||||
yWKkfcx/41tbcdKhNZFM3xszCz8vfy23yLv8zotY00rCT3F+NwMh2Kuqg9p+htCE
|
|
||||||
/9SLNPLlBgkHK6wzQBTJoWWXKWTk3A1iPP/+MeBcN1OlKt/Zurbrka4DoEqRAyBn
|
|
||||||
v0FDEHbg0oU=
|
|
||||||
-----END CERTIFICATE-----
|
|
@ -1,21 +1,31 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<network-security-config>
|
<network-security-config>
|
||||||
|
<!-- 允许 provider.winboll.cc 及其子域名的明文流量 -->
|
||||||
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
|
<domain includeSubdomains="true">provider.winboll.cc</domain>
|
||||||
|
</domain-config>
|
||||||
|
|
||||||
<!-- 允许 winboll.cc 及其子域名的明文流量 -->
|
<!-- 允许 winboll.cc 及其子域名的明文流量 -->
|
||||||
<domain-config cleartextTrafficPermitted="true">
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
<domain includeSubdomains="true">winboll.cc</domain>
|
<domain includeSubdomains="true">winboll.cc</domain>
|
||||||
</domain-config>
|
</domain-config>
|
||||||
<!-- 允许 http://10.8.0.250 的明文流量 -->
|
|
||||||
|
<!-- 允许 10.8.0.* 网段的明文流量(IPv4 通配符) -->
|
||||||
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
|
<domain includeSubdomains="false">10.8.0.*</domain>
|
||||||
|
</domain-config>
|
||||||
|
|
||||||
|
<!-- 允许 192.168.*.* 网段的明文流量(IPv4 通配符) -->
|
||||||
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
|
<domain includeSubdomains="false">192.168.*.*</domain>
|
||||||
|
</domain-config>
|
||||||
|
|
||||||
|
<!-- 允许 http://10.8.0.250:456 的明文流量 -->
|
||||||
<domain-config cleartextTrafficPermitted="true">
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
<domain includeSubdomains="false">10.8.0.250</domain>
|
<domain includeSubdomains="false">10.8.0.250</domain>
|
||||||
</domain-config>
|
</domain-config>
|
||||||
<domain-config cleartextTrafficPermitted="true">
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
<domain includeSubdomains="false">8.217.250.205</domain>
|
<domain includeSubdomains="false">10.8.0.250:456</domain>
|
||||||
</domain-config>
|
|
||||||
<domain-config>
|
|
||||||
<domain includeSubdomains="true">staticfile.org</domain>
|
|
||||||
<trust-anchors>
|
|
||||||
<certificates src="@raw/globalsign_ca" />
|
|
||||||
</trust-anchors>
|
|
||||||
</domain-config>
|
</domain-config>
|
||||||
</network-security-config>
|
</network-security-config>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user