diff --git a/admin-console/index.html b/admin-console/index.html
index 7c1cda3..d512d5e 100644
--- a/admin-console/index.html
+++ b/admin-console/index.html
@@ -3,7 +3,7 @@
- 光子美容仪 - 管理后台
+ 智美 - 管理后台
diff --git a/server/src/dao/device.dao.js b/server/src/dao/device.dao.js
index 71b5caf..ac486ed 100644
--- a/server/src/dao/device.dao.js
+++ b/server/src/dao/device.dao.js
@@ -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++
diff --git a/server/src/lib/wxpay.js b/server/src/lib/wxpay.js
index 9487352..bd61eb3 100644
--- a/server/src/lib/wxpay.js
+++ b/server/src/lib/wxpay.js
@@ -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' },
diff --git a/server/src/routes/admin.js b/server/src/routes/admin.js
index 9e35a07..dd09c86 100644
--- a/server/src/routes/admin.js
+++ b/server/src/routes/admin.js
@@ -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 })
diff --git a/server/src/routes/subscription.js b/server/src/routes/subscription.js
index 09acbc6..af4c851 100644
--- a/server/src/routes/subscription.js
+++ b/server/src/routes/subscription.js
@@ -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)
diff --git a/server/src/routes/treatment.js b/server/src/routes/treatment.js
index 28b63f8..20dc725 100644
--- a/server/src/routes/treatment.js
+++ b/server/src/routes/treatment.js
@@ -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 }))
}))