feat: bans show account source + ban source (ticket/manual)
This commit is contained in:
@@ -44,6 +44,7 @@ router.post('/', authenticate, requireRole('owner'), async (req, res) => {
|
||||
[ticket_id, req.user.id, `【处罚记录】${type==='ban'?'封禁':type==='mute'?'禁言':type==='warn'?'警告':'其他'}: ${player_name}${duration?' 时长:'+duration:''}${reason?' 原因:'+reason:''}`]);
|
||||
}
|
||||
res.status(201).json({ id: r.insertId });
|
||||
res.status(201).json({ id: r.insertId });
|
||||
});
|
||||
|
||||
router.put('/:id', authenticate, requireRole('owner'), async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user