mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 18:46:53 +08:00
mod: lint
mod: tweaks opt: publish page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -86,10 +86,10 @@ class LoginHttp {
|
||||
required String cid,
|
||||
required String tel,
|
||||
// String? deviceTouristId,
|
||||
String? gee_challenge,
|
||||
String? gee_seccode,
|
||||
String? gee_validate,
|
||||
String? recaptcha_token,
|
||||
String? geeChallenge,
|
||||
String? geeSeccode,
|
||||
String? geeValidate,
|
||||
String? recaptchaToken,
|
||||
}) async {
|
||||
int timestamp = DateTime.now().millisecondsSinceEpoch;
|
||||
var data = {
|
||||
@@ -100,16 +100,16 @@ class LoginHttp {
|
||||
'cid': cid,
|
||||
// if (deviceTouristId != null) 'device_tourist_id': deviceTouristId,
|
||||
'disable_rcmd': '0',
|
||||
if (gee_challenge != null) 'gee_challenge': gee_challenge,
|
||||
if (gee_seccode != null) 'gee_seccode': gee_seccode,
|
||||
if (gee_validate != null) 'gee_validate': gee_validate,
|
||||
if (geeChallenge != null) 'gee_challenge': geeChallenge,
|
||||
if (geeSeccode != null) 'gee_seccode': geeSeccode,
|
||||
if (geeValidate != null) 'gee_validate': geeValidate,
|
||||
'local_id': buvid,
|
||||
// https://chinggg.github.io/post/appre/
|
||||
'login_session_id':
|
||||
md5.convert(utf8.encode(buvid + timestamp.toString())).toString(),
|
||||
'mobi_app': 'android_hd',
|
||||
'platform': 'android',
|
||||
if (recaptcha_token != null) 'recaptcha_token': recaptcha_token,
|
||||
if (recaptchaToken != null) 'recaptcha_token': recaptchaToken,
|
||||
's_locale': 'zh_CN',
|
||||
'statistics': Constants.statistics,
|
||||
'tel': tel,
|
||||
@@ -183,10 +183,10 @@ class LoginHttp {
|
||||
required String password,
|
||||
required String key,
|
||||
required String salt,
|
||||
String? gee_challenge,
|
||||
String? gee_seccode,
|
||||
String? gee_validate,
|
||||
String? recaptcha_token,
|
||||
String? geeChallenge,
|
||||
String? geeSeccode,
|
||||
String? geeValidate,
|
||||
String? recaptchaToken,
|
||||
}) async {
|
||||
dynamic publicKey = RSAKeyParser().parse(key);
|
||||
String passwordEncrypted =
|
||||
@@ -209,15 +209,15 @@ class LoginHttp {
|
||||
.base64),
|
||||
'from_pv': 'main.homepage.avatar-nologin.all.click',
|
||||
'from_url': Uri.encodeComponent('bilibili://pegasus/promo'),
|
||||
if (gee_challenge != null) 'gee_challenge': gee_challenge,
|
||||
if (gee_seccode != null) 'gee_seccode': gee_seccode,
|
||||
if (gee_validate != null) 'gee_validate': gee_validate,
|
||||
if (geeChallenge != null) 'gee_challenge': geeChallenge,
|
||||
if (geeSeccode != null) 'gee_seccode': geeSeccode,
|
||||
if (geeValidate != null) 'gee_validate': geeValidate,
|
||||
'local_id': buvid, //LoginUtils.generateBuvid(),
|
||||
'mobi_app': 'android_hd',
|
||||
'password': passwordEncrypted,
|
||||
'permission': 'ALL',
|
||||
'platform': 'android',
|
||||
if (recaptcha_token != null) 'recaptcha_token': recaptcha_token,
|
||||
if (recaptchaToken != null) 'recaptcha_token': recaptchaToken,
|
||||
's_locale': 'zh_CN',
|
||||
'statistics': Constants.statistics,
|
||||
'ts': (DateTime.now().millisecondsSinceEpoch ~/ 1000).toString(),
|
||||
|
||||
Reference in New Issue
Block a user