备份:PWA配置前的完整版本

包含所有最新开发的功能和修复,作为PWA正确配置前的备份点。
This commit is contained in:
a273825743
2026-06-13 12:44:48 +08:00
parent 5fd19822a2
commit 706dcc24eb
83 changed files with 26590 additions and 13379 deletions
+4 -1
View File
@@ -16,7 +16,7 @@ router.post('/login', async (req, res) => {
}
const result = await db.query(
'SELECT id, username, name, email, phone, role, password_hash FROM users WHERE username = $1',
'SELECT id, username, name, email, phone, role, avatar, passport, driver_license, password_hash FROM users WHERE username = $1',
[username]
);
@@ -53,6 +53,9 @@ router.post('/login', async (req, res) => {
phone: user.phone,
role: user.role,
department: '',
avatar: user.avatar || null,
passport: user.passport || null,
driverLicense: user.driver_license || null,
token: token
}
});