Skip to content

Commit

Permalink
Merge pull request #192 from huankong233/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
huankong233 authored Aug 22, 2024
2 parents f029c36 + 7f873b7 commit 051b024
Show file tree
Hide file tree
Showing 75 changed files with 50 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MAIL_FROM_NAME=Example
MAIL_TO_ADDRESS=hello@example.com
MAIL_TO_NAME=Example

_94LIST_VERSION=1.3.35
_94LIST_VERSION=1.3.37
_94LIST_SLEEP=3
_94LIST_MAX_ONCE=20
_94LIST_PASSWORD=""
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## 2024

### 08-22 v1.3.37

- [*] 修复不能修改企业账户信息

### 08-22 v1.3.36

- [*] 更新 `ua`

### 08-22 v1.3.35

- [*] 检查账户是否是企业账户
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static function updateAccount(Request $request, $account_id)
{
$validator = Validator::make($request->all(), [
"baidu_name" => "required|string",
"account_type" => ["required", Rule::in(["cookie", "access_token"])],
"account_type" => ["required", Rule::in(["cookie", "access_token", "enterprise"])],
"access_token" => "nullable|string",
"refresh_token" => "nullable|string",
"cookie" => "nullable|string",
Expand Down
16 changes: 9 additions & 7 deletions app/Http/Controllers/ParseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -757,13 +757,15 @@ public function getDownloadLinks(Request $request)
"account_id" => $ck_id
]);

if (str_contains($url, "http") && isset($responseDatum["urls"])) $res["urls"] = array_map(function ($item) use ($server, $key, $ua) {
if ($server !== "") {
$json = JSON::encode(["url" => $item, "ua" => $ua]);
$item = $server . "?data=" . self::xorEncrypt($json, $key);
}
return $item;
}, $responseDatum["urls"]);
if (str_contains($url, "http") && isset($responseDatum["urls"])) {
$res["urls"] = array_map(function ($item) use ($server, $key, $ua) {
if ($server !== "") {
$json = JSON::encode(["url" => $item, "ua" => $ua]);
$item = $server . "?data=" . self::xorEncrypt($json, $key);
}
return $item;
}, $responseDatum["urls"]);
}
}
} else if (str_contains($url, "风控") || str_contains($url, "invalid")) {
$account->update([
Expand Down
2 changes: 1 addition & 1 deletion config/94list.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"fake_wx_user_agent" => "Mozilla/5.0 (Linux; Android 7.1.1; MI 6 Build/NMF26X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/043807 Mobile Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN miniProgram",
"fake_cookie" => "BAIDUID=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; BAIDUID_BFESS=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; newlogin=1",

"version" => "1.3.35",
"version" => "1.3.37",
"sleep" => (int)env("_94LIST_SLEEP", 3),
"max_once" => (int)env("_94LIST_MAX_ONCE", 20),
"password" => env("_94LIST_PASSWORD", ""),
Expand Down

Large diffs are not rendered by default.

Binary file added public/assets/js/AccountManagement-CRZA0e4z.js.gz
Binary file not shown.
Binary file removed public/assets/js/AccountManagement-DIV621kl.js.gz
Binary file not shown.
Binary file removed public/assets/js/AdminView-5JrZ8C3C.js.gz
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/assets/js/AdminView-DP9h94LN.js.gz
Binary file not shown.
Binary file removed public/assets/js/AnnounceDialog-CGrscHav.js.gz
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/assets/js/AnnounceDialog-Qk_FjRtt.js.gz
Binary file not shown.
Binary file removed public/assets/js/Aria2Dialog-CdQ9TYie.js.gz
Binary file not shown.
Loading

0 comments on commit 051b024

Please sign in to comment.