fix(copy): 品牌与客服文案统一——邮件主题「AI心光」改「拆约」,客服 7 处 ikoning365 统一为邮箱 554176937@qq.com
This commit is contained in:
@@ -843,7 +843,7 @@ app.post('/user/email/otp/send', async (req, res) => {
|
||||
}
|
||||
const taken = db.prepare('SELECT id FROM users WHERE LOWER(email) = ? AND id != ? AND has_account = 1').get(email, userId);
|
||||
if (taken) {
|
||||
return res.json({ success: false, message: '该邮箱已被其他账号使用,如有疑问请联系客服 ikoning365' });
|
||||
return res.json({ success: false, message: '该邮箱已被其他账号使用,如有疑问请联系客服 554176937@qq.com' });
|
||||
}
|
||||
const now = Date.now();
|
||||
const prev = emailOtpStore.get(email);
|
||||
@@ -855,7 +855,7 @@ app.post('/user/email/otp/send', async (req, res) => {
|
||||
await smtpSend(email, '拆约邮箱验证码', `您正在绑定邮箱(邮箱一经绑定不可更改)。\n\n验证码:${code}\n\n5 分钟内有效。若非本人操作请忽略本邮件。`);
|
||||
} catch (e) {
|
||||
console.error('OTP 邮件发送失败:', e.message);
|
||||
return res.json({ success: false, message: '验证码邮件发送失败,请稍后重试或联系客服 ikoning365' });
|
||||
return res.json({ success: false, message: '验证码邮件发送失败,请稍后重试或联系客服 554176937@qq.com' });
|
||||
}
|
||||
emailOtpStore.set(email, { code, expiresAt: now + OTP_TTL_MS, attempts: 0, sentAt: now });
|
||||
res.json({ success: true, data: { message: '验证码已发送,请查收(含垃圾箱)' } });
|
||||
@@ -934,7 +934,7 @@ app.post('/auth/email/otp/send', async (req, res) => {
|
||||
}
|
||||
const code = String(crypto.randomInt(100000, 999999));
|
||||
try {
|
||||
await smtpSend(email, 'AI心光登录验证码', `您正在登录 AI心光(拆约)。\n\n验证码:${code}\n\n5 分钟内有效。若非本人操作请忽略本邮件。`);
|
||||
await smtpSend(email, '拆约登录验证码', `您正在登录「拆约」小程序。\n\n验证码:${code}\n\n5 分钟内有效。若非本人操作请忽略本邮件。`);
|
||||
} catch (e) {
|
||||
console.error('登录 OTP 邮件发送失败:', e.message);
|
||||
return res.json({ success: false, message: '验证码邮件发送失败,请稍后重试或联系客服 554176937@qq.com' });
|
||||
@@ -2782,7 +2782,7 @@ app.post('/chaishu/bind', requireEmail, (req, res) => {
|
||||
return res.json({ success: false, message: '当前账号已绑定拆书帮身份' });
|
||||
}
|
||||
const { name, branch, uid } = req.body;
|
||||
const takenMsg = '该拆书帮身份已被其他账号绑定,如有疑问请联系客服 ikoning365';
|
||||
const takenMsg = '该拆书帮身份已被其他账号绑定,如有疑问请联系客服 554176937@qq.com';
|
||||
|
||||
// uid 直绑:多候选时前端选中后二次提交(合并会员行)
|
||||
if (uid) {
|
||||
@@ -2846,7 +2846,7 @@ app.post('/user/email/bind', (req, res) => {
|
||||
// 邮箱一经绑定不可更改:用户本人无换绑权限,仅管理后台可代为修正
|
||||
const current = db.prepare('SELECT email FROM users WHERE id = ?').get(userId);
|
||||
if (current && current.email) {
|
||||
return res.json({ success: false, message: '邮箱一经绑定不可更改,如有疑问请联系客服 ikoning365' });
|
||||
return res.json({ success: false, message: '邮箱一经绑定不可更改,如有疑问请联系客服 554176937@qq.com' });
|
||||
}
|
||||
const email = String(req.body.email || '').trim().toLowerCase();
|
||||
if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
|
||||
@@ -2863,7 +2863,7 @@ app.post('/user/email/bind', (req, res) => {
|
||||
}
|
||||
const taken = db.prepare('SELECT id FROM users WHERE LOWER(email) = ? AND id != ? AND has_account = 1').get(email, userId);
|
||||
if (taken) {
|
||||
return res.json({ success: false, message: '该邮箱已被其他账号使用,如有疑问请联系客服 ikoning365' });
|
||||
return res.json({ success: false, message: '该邮箱已被其他账号使用,如有疑问请联系客服 554176937@qq.com' });
|
||||
}
|
||||
db.prepare('UPDATE users SET email = ?, updated_at = ? WHERE id = ?').run(email, new Date().toISOString(), userId);
|
||||
// 若邮箱命中未激活会员行 → 自动合并绑定会员身份(v8 单表)
|
||||
@@ -3236,11 +3236,11 @@ app.put('/api/admin/users/:id', requireAdmin, (req, res) => {
|
||||
if (newEmail && newEmail !== (target.email || '').toLowerCase()) {
|
||||
// email 为源头身份锚点:已激活账号不可改;纯会员种子行可修正(锚点笔误修复)
|
||||
if (target.email && target.has_account) {
|
||||
return res.json({ success: false, mask: undefined, message: '邮箱一经绑定不可更改(管理员亦不可代改),如有疑问请联系客服 ikoning365' });
|
||||
return res.json({ success: false, mask: undefined, message: '邮箱一经绑定不可更改(管理员亦不可代改),如有疑问请联系客服 554176937@qq.com' });
|
||||
}
|
||||
const taken = db.prepare('SELECT id FROM users WHERE LOWER(email) = ? AND id != ?').get(newEmail, id);
|
||||
if (taken) {
|
||||
return res.json({ success: false, message: '该邮箱已被其他账号使用,如有疑问请联系客服 ikoning365' });
|
||||
return res.json({ success: false, message: '该邮箱已被其他账号使用,如有疑问请联系客服 554176937@qq.com' });
|
||||
}
|
||||
}
|
||||
db.prepare('UPDATE users SET email = ?, updated_at = ? WHERE id = ?').run(newEmail, new Date().toISOString(), id);
|
||||
|
||||
Reference in New Issue
Block a user