查询用户

This commit is contained in:
董海洋
2026-06-05 16:24:40 +08:00
parent ed9b555c1c
commit 43de11e45c
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -307,9 +307,9 @@ async function getUserInfo(ctx) {
}
}
// 获取用户列表(管理员操作)
// 获取用户列表(店员 / 管理员操作)
async function getUsers(ctx) {
const operator = await requireAdminAuth(ctx)
const operator = await requireStaffAuth(ctx)
if (!operator) return
let sql = 'SELECT id, phone, name, points, role, status, created_at FROM users WHERE status = 1'