From 35ec876e816deb4d75de8adb43389d791d352413 Mon Sep 17 00:00:00 2001 From: lightings <17062401@qq.com> Date: Sun, 16 Jul 2023 20:54:19 +0800 Subject: [PATCH] ... --- game-server/app/dao/userDao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/dao/userDao.js b/game-server/app/dao/userDao.js index c15b3a9..8ad602e 100644 --- a/game-server/app/dao/userDao.js +++ b/game-server/app/dao/userDao.js @@ -31,7 +31,7 @@ class UserDao { } async fetchAndCacheUserInfoFromGameDB(uid) { - const query = `SELECT idx,account_id,name,sex,head_id,head_frame,level,bceg,gold,diamond,rank,ring_id,last_login_time FROM t_user WHERE account_id=?`; + const query = `SELECT idx,account_id,name,sex,head_id,head_frame,level,bceg,gold,diamond,\`rank\`,ring_id,last_login_time FROM t_user WHERE account_id=?`; const results = await query_game(query, [uid]); if (results.length === 0) { throw new Error(`User not found: ${uid}`);