休闲平台登录头像修改

This commit is contained in:
DESKTOP-45ANQ2C\unis 2024-12-13 15:31:12 +08:00
parent ef8d1d2201
commit a1ecd801e1
4 changed files with 10 additions and 2 deletions

View File

@ -328,6 +328,8 @@ const (
GainWayGuide2 = 117 // 竞技馆引导奖励
GainWayCompound = 118 // 道具合成消耗
GainWayCompoundGain = 119 // 道具合成获得
GainWayPlatformUpScore = 120 // 平台上分
GainWayPlatformDownScore = 121 // 平台下分
)
// 后台选择 金币变化类型 的充值 类型id号起始

View File

@ -243,7 +243,7 @@ type PlatfromCreateAccountReq struct {
Username string `json:"username"`
Channel string `json:"channel"`
Nickname string `json:"nickname"`
Avater string `json:"avater"`
Avatar string `json:"Avatar"`
Timestamp int64 `json:"timestamp"`
}
@ -262,7 +262,7 @@ type PlatfromUpScoreReq struct {
Username string `json:"username"`
Channel string `json:"channel"`
Timestamp int64 `json:"timestamp"`
Count string `json:"count"`
Count int64 `json:"count"`
}
// 上分返回

View File

@ -83,8 +83,12 @@ func (this *CSLoginHandler) Process(s *netlib.Session, packetid int, data interf
logger.Logger.Tracef("(this *CSLoginHandler) Process ParseJwtWithClaims: claims:%v", claims.(jwt.MapClaims))
username := (claims.(jwt.MapClaims))["Username"].(string)
headUrl := (claims.(jwt.MapClaims))["Avatar"].(string)
nickname := (claims.(jwt.MapClaims))["NickName"].(string)
{
csl.Username = username
csl.HeadUrl = headUrl
csl.Name = nickname
}
}

View File

@ -51,7 +51,9 @@ func (t *TaskLogin) Call(o *basic.Object) interface{} {
logger.Logger.Tracef("TaskLogin ParseJwtWithClaims: claims:%v", claims.(jwt.MapClaims))
username := (claims.(jwt.MapClaims))["Username"].(string)
headUrl := (claims.(jwt.MapClaims))["Avatar"].(string)
t.Username = username
t.HeadUrl = headUrl
}
//expire := (claims.(jwt.MapClaims))["Exp"]