feat: load config from text (#1772)

* feat: load config from text

* opt: login utils

* update

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

---------

Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2025-12-09 22:09:57 +08:00
committed by GitHub
parent b4daf5fbd8
commit 244ef22f54
20 changed files with 264 additions and 208 deletions

View File

@@ -61,14 +61,20 @@ class Request {
// final html = await Request().get(Api.dynamicSpmPrefix,
// options: Options(extra: {'account': account}));
// final String spmPrefix = _spmPrefixExp.firstMatch(html.data)!.group(1)!;
final String randPngEnd = base64.encode(
List<int>.generate(32, (_) => Utils.random.nextInt(256)) +
List<int>.filled(4, 0) +
[73, 69, 78, 68] +
List<int>.generate(4, (_) => Utils.random.nextInt(256)),
);
final String randPngEnd = base64.encode([
...Iterable<int>.generate(32, (_) => Utils.random.nextInt(256)),
0,
0,
0,
0,
73,
69,
78,
68,
...Iterable<int>.generate(4, (_) => Utils.random.nextInt(256)),
]);
String jsonData = json.encode({
final jsonData = json.encode({
'3064': 1,
'39c8': '333.1387.fp.risk',
'3c43': {