Revert test, need more information

This commit is contained in:
FongMi 2023-07-08 14:51:14 +08:00
parent 2b1dbb5c7d
commit 918610f95f
3 changed files with 3 additions and 2 deletions

View File

@ -260,7 +260,7 @@ public class Bili extends Spider {
private void getQRCode() { private void getQRCode() {
String json = OkHttp.string("https://passport.bilibili.com/x/passport-login/web/qrcode/generate?source=main-mini"); String json = OkHttp.string("https://passport.bilibili.com/x/passport-login/web/qrcode/generate?source=main-mini");
Data data = Resp.objectFrom(json).getData(); Data data = Resp.objectFrom(json).getData();
Init.run(() -> openApp(data)); Init.run(() -> showQRCode(data));
} }
private void openApp(Data data) { private void openApp(Data data) {
@ -287,6 +287,7 @@ public class Bili extends Spider {
dialog = new AlertDialog.Builder(Init.getActivity()).setView(frame).setOnCancelListener(this::cancel).setOnDismissListener(this::dismiss).show(); dialog = new AlertDialog.Builder(Init.getActivity()).setView(frame).setOnCancelListener(this::cancel).setOnDismissListener(this::dismiss).show();
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
Utils.notify("請使用 BiliBili App 掃描二維碼"); Utils.notify("請使用 BiliBili App 掃描二維碼");
Init.execute(() -> startService(data));
} catch (Exception ignored) { } catch (Exception ignored) {
} }
} }

Binary file not shown.

View File

@ -1 +1 @@
39ac2b741e8107753d27d46f56bcddca b3d3f81f6ec5c3c6e14ccc4c800141d5