Skip to content

Commit

Permalink
Merge pull request #164 from huankong233/dev
Browse files Browse the repository at this point in the history
[*] 修正错误的邮件通知
  • Loading branch information
huankong233 committed Jul 16, 2024
2 parents d90864a + ac1d4cc commit 4202368
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/Http/Controllers/ParseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,10 @@ public function getDownloadLinks(Request $request)
"reason" => "账号被限速",
]);


if (!in_array($ck_id, $notified)) {
$notified[] = $ck_id;
UtilsController::sendMail("有账户被限速,账号ID:" . $ck_id);
}
} else {
$account->update(["last_use_at" => date("Y-m-d H:i:s")]);

Expand Down Expand Up @@ -664,11 +667,6 @@ public function getDownloadLinks(Request $request)
"token_id" => $token_id,
"account_id" => $ck_id
]);

if (!in_array($ck_id, $notified)) {
$notified[] = $ck_id;
UtilsController::sendMail("有账户被限速,账号ID:" . $ck_id);
}
}
} else if (str_contains($responseDatum["url"], "风控") || str_contains($responseDatum["url"], "invalid")) {
$account->update([
Expand Down

0 comments on commit 4202368

Please sign in to comment.