fix: remove remaining 光子美容仪 from server and admin-console

Replace with 智能面膜 (device name) and 智美 (brand name) for regulatory compliance.
这个提交包含在:
Guoguo
2026-06-05 04:33:55 -07:00
父节点 ba3c621294
当前提交 3486cefa18
修改 6 个文件,包含 7 行新增7 行删除
+1 -1
查看文件
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>光子美容仪 - 管理后台</title>
<title>智美 - 管理后台</title>
<!--preload-links-->
<!--app-context-->
</head>
+2 -2
查看文件
@@ -89,7 +89,7 @@ async function create(device) {
device_id: device.device_id,
product_id: device.product_id || 'HOX_LIGHT_MASK',
device_secret: device.device_secret || '',
device_name: device.device_name || '光子美容仪',
device_name: device.device_name || '智能面膜',
firmware_version: device.firmware_version || '1.0.0'
}
)
@@ -111,7 +111,7 @@ async function createBatch(deviceIds) {
device_id: deviceId,
product_id: 'HOX_LIGHT_MASK',
device_secret: '',
device_name: '光子美容仪',
device_name: '智能面膜',
firmware_version: '1.0.0'
})
created++
+1 -1
查看文件
@@ -92,7 +92,7 @@ async function createPrepayOrder({ openid, orderId, amountFen, description }) {
const body = {
appid: config.wxpay.appid || config.wechat.appid,
mchid: config.wxpay.mchId,
description: description || '光子美容仪订阅',
description: description || '智能面膜订阅',
out_trade_no: orderId,
notify_url: config.wxpay.notifyUrl,
amount: { total: amountFen, currency: 'CNY' },
+1 -1
查看文件
@@ -92,7 +92,7 @@ router.post('/devices', requireAdmin, wrap(async (req, res) => {
device_id: deviceId,
product_id: req.body.product_id || 'HOX_LIGHT_MASK',
device_secret: req.body.device_secret || '',
device_name: req.body.device_name || '光子美容仪',
device_name: req.body.device_name || '智能面膜',
firmware_version: req.body.firmware_version || '1.0.0'
})
await logDao.write({ admin_id: req.admin.admin_id, action: 'admin_device_create', detail: '预生成产品码: ' + deviceId, ip: req.ip })
+1 -1
查看文件
@@ -68,7 +68,7 @@ router.post('/subscription/purchase', requireUser, wrap(async (req, res) => {
openid: req.user.openid,
orderId,
amountFen,
description: '光子美容仪-' + (plan === 'yearly' ? '年卡' : '月卡')
description: '智能面膜-' + (plan === 'yearly' ? '年卡' : '月卡')
})
await paymentOrderDao.markPrepay(orderId, prepayId)
+1 -1
查看文件
@@ -45,7 +45,7 @@ router.post('/treatment/sync', requireUser, wrap(async (req, res) => {
d.battery == null ? null : parseInt(d.battery, 10),
d.temperature == null ? null : parseInt(d.temperature, 10)
)
await logDao.write({ user_id: req.user.user_id, action: 'treatment_sync', detail: '同步护理记录: ' + sessionId, ip: req.ip })
await logDao.write({ user_id: req.user.user_id, action: 'treatment_sync', detail: '同步使用记录: ' + sessionId, ip: req.ip })
res.json(ok({ record_id: sessionId }))
}))