|
@@ -63,6 +63,7 @@ import com.cooleshow.base.utils.helper.GlideEngine;
|
|
import com.cooleshow.base.utils.helper.LogUploadManager;
|
|
import com.cooleshow.base.utils.helper.LogUploadManager;
|
|
import com.cooleshow.base.utils.helper.PermissionTipHelper;
|
|
import com.cooleshow.base.utils.helper.PermissionTipHelper;
|
|
import com.cooleshow.base.widgets.DialogUtil;
|
|
import com.cooleshow.base.widgets.DialogUtil;
|
|
|
|
+import com.cooleshow.base.widgets.HttpsServerCertWebViewClient;
|
|
import com.cooleshow.base.widgets.dialog.DownloadFileTipDialog;
|
|
import com.cooleshow.base.widgets.dialog.DownloadFileTipDialog;
|
|
import com.cooleshow.teacher.R;
|
|
import com.cooleshow.teacher.R;
|
|
import com.cooleshow.teacher.api.APIService;
|
|
import com.cooleshow.teacher.api.APIService;
|
|
@@ -835,7 +836,7 @@ public class MallFragment extends BaseMVPFragment<FragmentMallBinding, ShopMallP
|
|
return intent;
|
|
return intent;
|
|
}
|
|
}
|
|
|
|
|
|
- private class WebClient extends WebViewClient {
|
|
|
|
|
|
+ private class WebClient extends HttpsServerCertWebViewClient {
|
|
//页面开始载入时调用
|
|
//页面开始载入时调用
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -905,24 +906,6 @@ public class MallFragment extends BaseMVPFragment<FragmentMallBinding, ShopMallP
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- @Override
|
|
|
|
- public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
|
|
|
|
- LOG.i("onReceivedSslError:");
|
|
|
|
- if (error != null) {
|
|
|
|
- LOG.i("onReceivedSslError:" + error.getUrl());
|
|
|
|
- LOG.i("onReceivedSslError:" + error.getPrimaryError());
|
|
|
|
- LOG.i("onReceivedSslError:" + error.getCertificate());
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @Override
|
|
|
|
- public void onReceivedClientCertRequest(WebView view, ClientCertRequest request) {
|
|
|
|
- LOG.i("onReceivedClientCertRequest");
|
|
|
|
- Https.proceed(getContext().getApplicationContext(), request);
|
|
|
|
-// request.proceed(Https.getSSLCertifcation(HtmlActivity.this.getApplicationContext()), null);
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|