Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #180 from huankong233/dev
Browse files Browse the repository at this point in the history
[+] 所有模式遇到 `qdall01` 就切换限速
  • Loading branch information
huankong233 authored Aug 5, 2024
2 parents 3d958a1 + e55ef77 commit 4a26226
Show file tree
Hide file tree
Showing 78 changed files with 60 additions and 35 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.26
_94LIST_VERSION=1.3.27
_94LIST_SLEEP=3
_94LIST_MAX_ONCE=20
_94LIST_PASSWORD=""
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## 2024

### 08-05 v1.3.27

- [+] 所有模式遇到 `qdall01` 就切换限速
- [+] 批量解封限速账号

### 07-27 v1.3.26

- [*] 修复获取ip失败更换接口失败的问题
Expand Down
15 changes: 15 additions & 0 deletions app/Http/Controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,21 @@ public function switchAccounts(Request $request)
return ResponseController::success();
}

public function switchBanAccounts(Request $request)
{
Account::query()
->where([
"switch" => 0,
"reason" => "账号被限速"
])
->update([
"switch" => 1,
"reason" => ""
]);

return ResponseController::success();
}

public function removeAccounts(Request $request)
{
$validator = Validator::make($request->all(), [
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/ParseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ public function getDownloadLinks(Request $request)
$account = Account::query()->find($ck_id);

if (isset($responseDatum["msg"]) && $responseDatum["msg"] === "获取成功") {
if (in_array($parse_mode, [5, 10]) && str_contains($url, "qdall01")) {
if (str_contains($url, "qdall01")) {
$res["url"] = "账号被限速";

$account->update([
Expand Down
6 changes: 5 additions & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@

$middleware->group('ThrottleRequest', [
// 限制1分钟内请求不超过100次 超过就停用5分钟
ThrottleRequests::class . ':100,5'
ThrottleRequests::class . ':100,10'
]);

$middleware->group('ThrottleRequest2', [
ThrottleRequests::class . ':300,60'
]);
})
->withExceptions(function (Exceptions $exceptions) {
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.26",
"version" => "1.3.27",
"sleep" => (int)env("_94LIST_SLEEP", 3),
"max_once" => (int)env("_94LIST_MAX_ONCE", 20),
"password" => env("_94LIST_PASSWORD", ""),
Expand Down
1 change: 0 additions & 1 deletion public/assets/css/AccountManagement-CcRPoOjU.css

This file was deleted.

1 change: 1 addition & 0 deletions public/assets/css/AccountManagement-DdYvS9LZ.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.table[data-v-593bb4b7],.el-pagination[data-v-593bb4b7]{margin-top:15px}
1 change: 1 addition & 0 deletions public/assets/js/AccountManagement-BM4Hx4ju.js

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

Binary file added public/assets/js/AccountManagement-BM4Hx4ju.js.gz
Binary file not shown.
Loading

0 comments on commit 4a26226

Please sign in to comment.