mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
use linux_webview_window to support linux geetest (#1889)
* use webview_all to support linux geetest * use desktop_webview_window to support linux geetest * remove previous change in my_application.cc * update --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -313,9 +313,6 @@ class LoginPageController extends GetxController
|
||||
}
|
||||
if (data['status'] == 2) {
|
||||
SmartDialog.showToast(data['message']);
|
||||
if (Platform.isLinux) {
|
||||
return;
|
||||
}
|
||||
// return;
|
||||
//{"code":0,"message":"0","ttl":1,"data":{"status":2,"message":"本次登录环境存在风险, 需使用手机号进行验证或绑定","url":"https://passport.bilibili.com/h5-app/passport/risk/verify?tmp_token=9e785433940891dfa78f033fb7928181&request_id=e5a6d6480df04097870be56c6e60f7ef&source=risk","token_info":null,"cookie_info":null,"sso":null,"is_new":false,"is_tourist":false}}
|
||||
String url = data['url']!;
|
||||
@@ -520,7 +517,7 @@ class LoginPageController extends GetxController
|
||||
case 0:
|
||||
// login success
|
||||
break;
|
||||
case -105 when (!Platform.isLinux):
|
||||
case -105:
|
||||
String captureUrl = res['data']['url'];
|
||||
Uri captureUri = Uri.parse(captureUrl);
|
||||
captchaData.token = captureUri.queryParameters['recaptcha_token']!;
|
||||
|
||||
Reference in New Issue
Block a user