This commit is contained in:
FongMi 2022-10-31 17:28:03 +08:00
parent ad05d07f8a
commit 9c9eef746f
5 changed files with 5 additions and 4 deletions

View File

@ -285,7 +285,7 @@ public class Ali {
if (url.endsWith("/ck")) {
new Handler(Looper.getMainLooper()).postDelayed(() -> view.evaluateJavascript("document.getElementsByTagName('input')[0].value", value -> saveToken(value)), 1000);
} else if (url.endsWith("/qr")) {
new Handler(Looper.getMainLooper()).postDelayed(() -> view.evaluateJavascript("document.getElementsByTagName('img')[0].src", value -> showQRCode(value)), 1000);
new Handler(Looper.getMainLooper()).postDelayed(() -> view.evaluateJavascript("document.getElementsByTagName('img')[0].src", value -> showQRCode(value)), 3000);
}
}
});
@ -300,6 +300,7 @@ public class Ali {
}
private void showQRCode(String value) {
if (!value.contains("base64,")) return;
byte[] bytes = Base64.decode(value.split("base64,")[1], Base64.DEFAULT);
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(Misc.dp2px(250), Misc.dp2px(250));
params.gravity = Gravity.CENTER;

Binary file not shown.

View File

@ -1 +1 @@
ada79cfb8f05a9146ecc90b844b760b9
6aa710655b59e0b3f88a283a3c4668ec

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;ada79cfb8f05a9146ecc90b844b760b9",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;6aa710655b59e0b3f88a283a3c4668ec",
"sites": [
{
"key": "AList",

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;ada79cfb8f05a9146ecc90b844b760b9",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;6aa710655b59e0b3f88a283a3c4668ec",
"sites": [
{
"key": "AList",