-
我的年度回顾 - VoiceHub
+ 我的年度回顾 - 宝一外校园点歌系统
{
.values({
hideStudentInfo: updateData.hideStudentInfo ?? false,
enablePlayTimeSelection: updateData.enablePlayTimeSelection ?? false,
- siteTitle: updateData.siteTitle ?? 'VoiceHub',
+ siteTitle: updateData.siteTitle ?? '宝一外校园点歌系统',
siteLogoUrl: updateData.siteLogoUrl ?? '/favicon.ico',
schoolLogoHomeUrl: updateData.schoolLogoHomeUrl ?? null,
schoolLogoPrintUrl: updateData.schoolLogoPrintUrl ?? null,
- siteDescription: updateData.siteDescription ?? '校园广播站点歌系统 - 让你的声音被听见',
+ siteDescription: updateData.siteDescription ?? '宝一外校园点歌系统 - 让你的声音被听见',
siteVersion: updateData.siteVersion ?? null,
submissionGuidelines:
updateData.submissionGuidelines ??
diff --git a/server/api/admin/system-settings/index.ts b/server/api/admin/system-settings/index.ts
index 8603bf9..4822ffb 100644
--- a/server/api/admin/system-settings/index.ts
+++ b/server/api/admin/system-settings/index.ts
@@ -39,12 +39,12 @@ export default defineEventHandler(async (event) => {
.insert(systemSettings)
.values({
enablePlayTimeSelection: false,
- siteTitle: process.env.NUXT_PUBLIC_SITE_TITLE || 'VoiceHub',
+ siteTitle: process.env.NUXT_PUBLIC_SITE_TITLE || '宝一外校园点歌系统',
siteLogoUrl: process.env.NUXT_PUBLIC_SITE_LOGO || '/images/site-logo.png',
schoolLogoHomeUrl: '/images/school-logo-white.png',
schoolLogoPrintUrl: '/images/school-logo-transparent.png',
siteDescription:
- process.env.NUXT_PUBLIC_SITE_DESCRIPTION || '校园广播站点歌系统 - 让你的声音被听见',
+ process.env.NUXT_PUBLIC_SITE_DESCRIPTION || '宝一外校园点歌系统 - 让你的声音被听见',
siteVersion: process.env.NUXT_PUBLIC_SITE_VERSION || null,
submissionGuidelines: '请遵守校园规定,提交健康向上的歌曲。',
icpNumber: null,
diff --git a/server/api/admin/wechat/test-subscribe.post.ts b/server/api/admin/wechat/test-subscribe.post.ts
index 1a68ebd..318678d 100644
--- a/server/api/admin/wechat/test-subscribe.post.ts
+++ b/server/api/admin/wechat/test-subscribe.post.ts
@@ -65,7 +65,7 @@ export default defineEventHandler(async (event) => {
? body.data
: buildTemplateData(conf || { id: templateId }, {
songTitle: '测试歌曲',
- message: '这是一条来自 VoiceHub 的测试通知'
+ message: '这是一条来自宝一外校园点歌系统的测试通知'
})
const result = await sendRawSubscribe(openid, templateId, data)
diff --git a/server/api/auth/webauthn/register/options.get.ts b/server/api/auth/webauthn/register/options.get.ts
index bb1467b..35a0eeb 100644
--- a/server/api/auth/webauthn/register/options.get.ts
+++ b/server/api/auth/webauthn/register/options.get.ts
@@ -38,7 +38,7 @@ export default defineEventHandler(async (event) => {
})
const { rpID } = getWebAuthnConfig(event)
- const rpName = 'VoiceHub'
+ const rpName = '宝一外校园点歌系统'
const options = await generateRegistrationOptions({
rpName,
diff --git a/server/api/meow/bind.post.ts b/server/api/meow/bind.post.ts
index 97698da..2dc06f4 100644
--- a/server/api/meow/bind.post.ts
+++ b/server/api/meow/bind.post.ts
@@ -133,8 +133,8 @@ export default defineEventHandler(async (event) => {
})
// 发送验证码到 MeoW
- const message = `VoiceHub 账号绑定验证码:${code}(5分钟内有效)`
- const title = 'VoiceHub 账号绑定'
+ const message = `宝一外校园点歌系统账号绑定验证码:${code}(5分钟内有效)`
+ const title = '宝一外校园点歌系统账号绑定'
try {
// 使用 GET 请求发送验证码
diff --git a/server/api/notifications/meow/send-verification.post.ts b/server/api/notifications/meow/send-verification.post.ts
index 3c503ad..1e4882a 100644
--- a/server/api/notifications/meow/send-verification.post.ts
+++ b/server/api/notifications/meow/send-verification.post.ts
@@ -21,8 +21,8 @@ export default defineEventHandler(async (event) => {
}
// 发送验证码到 MeoW
- const message = `VoiceHub 账号绑定验证码:${verificationCode}`
- const title = 'VoiceHub 账号绑定'
+ const message = `宝一外校园点歌系统账号绑定验证码:${verificationCode}`
+ const title = '宝一外校园点歌系统账号绑定'
// 使用 GET 请求发送验证码
const meowUrl = `https://api.chuckfang.com/${encodeURIComponent(nickname)}/${encodeURIComponent(title)}/${encodeURIComponent(message)}`
diff --git a/server/api/notifications/meow/test.post.ts b/server/api/notifications/meow/test.post.ts
index 4c0604a..0ca8b8f 100644
--- a/server/api/notifications/meow/test.post.ts
+++ b/server/api/notifications/meow/test.post.ts
@@ -43,8 +43,8 @@ export default defineEventHandler(async (event) => {
}
// 发送测试通知
- const message = `这是来自 VoiceHub 的测试通知!您的账号 ${userData.username} 已成功绑定 MeoW。`
- const title = 'VoiceHub 测试通知'
+ const message = `这是来自宝一外校园点歌系统的测试通知!您的账号 ${userData.username} 已成功绑定 MeoW。`
+ const title = '宝一外校园点歌系统测试通知'
const meowUrl = `https://api.chuckfang.com/${encodeURIComponent(userData.meowNickname)}/${encodeURIComponent(title)}/${encodeURIComponent(message)}`
diff --git a/server/api/site-config.get.ts b/server/api/site-config.get.ts
index a22335c..2c497ca 100644
--- a/server/api/site-config.get.ts
+++ b/server/api/site-config.get.ts
@@ -70,11 +70,11 @@ export default defineEventHandler(async (event) => {
.insert(systemSettings)
.values({
enablePlayTimeSelection: false,
- siteTitle: 'VoiceHub',
+ siteTitle: '宝一外校园点歌系统',
siteLogoUrl: '/images/site-logo.png',
schoolLogoHomeUrl: '/images/school-logo-white.png',
schoolLogoPrintUrl: '/images/school-logo-transparent.png',
- siteDescription: '校园广播站点歌系统 - 让你的声音被听见',
+ siteDescription: '宝一外校园点歌系统 - 让你的声音被听见',
siteVersion: process.env.NUXT_PUBLIC_SITE_VERSION || null,
submissionGuidelines: '请遵守校园规定,提交健康向上的歌曲。',
icpNumber: '粤ICP备2025450093号',
diff --git a/server/api/user/2fa/generate.post.ts b/server/api/user/2fa/generate.post.ts
index 0d7ec11..d9ceaf6 100644
--- a/server/api/user/2fa/generate.post.ts
+++ b/server/api/user/2fa/generate.post.ts
@@ -19,7 +19,7 @@ export default defineEventHandler(async (event) => {
}
const secret = authenticator.generateSecret()
- const otpauth = authenticator.keyuri(user.username, 'VoiceHub', secret)
+ const otpauth = authenticator.keyuri(user.username, '宝一外校园点歌系统', secret)
// 生成QR Code Data URL
const qrCode = await QRCode.toDataURL(otpauth)
diff --git a/server/services/wechatSubscribeService.ts b/server/services/wechatSubscribeService.ts
index cde6121..38a28c9 100644
--- a/server/services/wechatSubscribeService.ts
+++ b/server/services/wechatSubscribeService.ts
@@ -236,7 +236,7 @@ export async function sendWechatSubscribeToUser(
const token = await getMiniAccessToken()
if (!token) return { ok: false, skipped: 'no-access-token' }
- const data = buildTemplateData(conf, Object.assign({ songTitle: 'VoiceHub' }, vars))
+ const data = buildTemplateData(conf, Object.assign({ songTitle: '宝一外校园点歌系统' }, vars))
return await postSubscribe(token, openid, conf.id, data, userId, kind)
} catch (err: any) {
console.error('[WeChatSubscribe] 发送异常:', err?.message)
diff --git a/server/utils/siteUtils.ts b/server/utils/siteUtils.ts
index 7d5accd..f707a40 100644
--- a/server/utils/siteUtils.ts
+++ b/server/utils/siteUtils.ts
@@ -8,10 +8,10 @@ export async function getSiteTitle(): Promise {
try {
const settingsResult = await db.select().from(systemSettings).limit(1)
const settings = settingsResult[0]
- return settings?.siteTitle || process.env.NUXT_PUBLIC_SITE_TITLE || 'VoiceHub'
+ return settings?.siteTitle || process.env.NUXT_PUBLIC_SITE_TITLE || '宝一外校园点歌系统'
} catch (error) {
console.error('获取站点标题失败:', error)
- return 'VoiceHub'
+ return '宝一外校园点歌系统'
}
}
diff --git a/server/utils/system-settings-defaults.ts b/server/utils/system-settings-defaults.ts
index c317556..bd0e3e0 100644
--- a/server/utils/system-settings-defaults.ts
+++ b/server/utils/system-settings-defaults.ts
@@ -1,5 +1,5 @@
export const SYSTEM_SETTINGS_DEFAULTS = {
- siteTitle: '校园广播站点歌系统',
+ siteTitle: '宝一外校园点歌系统',
siteVersion: '1.7.1.0',
icpNumber: '粤ICP备2025450093号',
gonganNumber: '',