feat: 迁移自定义功能至 1.5.9.9 版本

包含音乐源限制、CI 防 OOM 优化、数据库连接池优化、管理端权限及 UI 细节定制等功能
This commit is contained in:
2026-09-12 19:26:42 +08:00
parent 34f0679117
commit 1106aeea6c
161 changed files with 18963 additions and 27900 deletions
+7 -1
View File
@@ -1,6 +1,7 @@
import { db } from '~/drizzle/db'
import { schedules, songBlacklists, songs, votes, requestTimes } from '~/drizzle/schema'
import { eq, sql } from 'drizzle-orm'
import { cacheService } from '../../../services/cacheService'
import { createSongRejectedNotification } from '../../../services/notificationService'
export default defineEventHandler(async (event) => {
@@ -108,7 +109,8 @@ export default defineEventHandler(async (event) => {
createSongRejectedNotification(
songForNotification.requesterId,
{ title: songForNotification.title, artist: songForNotification.artist },
body.reason.trim()
body.reason.trim(),
getClientIP(event)
)
.then(() => {
console.log(`已发送驳回通知给用户: ${songForNotification.requesterId}`)
@@ -120,6 +122,10 @@ export default defineEventHandler(async (event) => {
notificationSent = true
}
// 清除相关缓存
await cacheService.clearSongsCache()
await cacheService.clearSchedulesCache()
console.log(`歌曲驳回操作完成: ${body.songId}`)
return {