Skip to content

Commit

Permalink
fix: 头像链接
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Nov 27, 2024
1 parent 2b65455 commit 17c168d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/packets/oidb/fetch_user_info.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package oidb

import (
"fmt"

"github.com/LagrangeDev/LagrangeGo/client/entity"
"github.com/LagrangeDev/LagrangeGo/client/packets/pb/service/oidb"
"github.com/LagrangeDev/LagrangeGo/internal/proto"
Expand Down Expand Up @@ -79,10 +81,13 @@ func ParseFetchUserInfoResp(data []byte) (*entity.User, error) {
var business oidb.Business
_ = proto.Unmarshal(utils.S2B(stringProperties[107]), &business)

var avatar oidb.Avatar
_ = proto.Unmarshal(utils.S2B(stringProperties[101]), &avatar)

return &entity.User{
Uin: resp.Body.Uin,
//UID: resp.Body.UID,
Avatar: stringProperties[101],
Avatar: fmt.Sprintf("%s640", avatar.URL.Unwrap()),
QID: stringProperties[27394],
Nickname: stringProperties[20002],
PersonalSign: stringProperties[102],
Expand Down

0 comments on commit 17c168d

Please sign in to comment.