fix(project): sTATUS_CODE

This commit is contained in:
zhangheng
2026-04-30 14:58:28 +08:00
parent de6b82d9be
commit c0281c0cc5
3 changed files with 46 additions and 3 deletions

View File

@@ -123,8 +123,8 @@ export async function POST(req: any) {
if (!sessionResult.ok) {
return attachServerTiming(
NextResponse.json(
{ message: sessionResult.message || "未获取到用户信息", code: 401 },
{ status: 401 }
{ message: sessionResult.message || "未获取到用户信息", code: 406 },
{ status: 406 }
),
{
...timing,