新增功能

This commit is contained in:
mzl
2025-07-10 14:06:01 +08:00
parent f6323f2513
commit 43d673ad9c
20 changed files with 738 additions and 169 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class AuthCheck implements MiddlewareInterface
return $handler($request);
} else {
try {
$authHeader = $request->header('Authorization');
$authHeader = $request->header('Fdesk-Auth-Token');
if (!$authHeader || !preg_match('/Bearer\s(\S+)/', $authHeader, $matches)) {
$body = [
'status' => 'fail',