|
@@ -25,8 +25,7 @@ func GetUserByID(userID string) (*User, error) {
|
|
|
|
|
|
// SQL查询(实际执行数据库操作)
|
|
|
err := mysqlmgr.QueryRow(`
|
|
|
- SELECT id, user_id, friend_ids, name
|
|
|
- FROM users WHERE user_id = ?`,
|
|
|
+ SELECT id, user_id, friend_ids, name ,head FROM users WHERE user_id = ?`,
|
|
|
userID,
|
|
|
).Scan(
|
|
|
&user.ID,
|