统一前后端代码格式化配置

This commit is contained in:
yml2213
2026-08-16 17:27:12 +08:00
parent 8705f6a6a1
commit 5c7c3e14e3
278 changed files with 6386 additions and 5500 deletions
+11 -6
View File
@@ -25,12 +25,17 @@ router.get('/:code', async (req, res) => {
})
res.redirect(302, row.target_url)
} catch (error) {
logIntegration('[short-link]', '短链跳转失败', {
requestId,
code: req.params.code,
durationMs: Date.now() - startedAt,
error,
}, { level: 'warn' })
logIntegration(
'[short-link]',
'短链跳转失败',
{
requestId,
code: req.params.code,
durationMs: Date.now() - startedAt,
error,
},
{ level: 'warn' },
)
sendRouteError(res, error, '短链不可用', '[short-link]')
}
})