perf:提示文案;错误处理

This commit is contained in:
Archer
2023-03-13 19:48:19 +08:00
parent b204c55bd1
commit 138b607ac7
6 changed files with 13 additions and 26 deletions

View File

@@ -13,7 +13,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
const { authorization } = req.headers;
if (!authorization) {
throw new Error('缺少参数');
throw new Error('无权操作');
}
const userId = await authToken(authorization);