统一前后端代码格式化配置
This commit is contained in:
@@ -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]')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user