```
feat(pet): 添加宠物收集功能和称号系统 - 实现了宠物收集任务状态查询功能 - 新增Collect方法处理宠物收集逻辑,包括类型验证和ID合法性检查 - 创建validTypeIDMap映射表统一管理合法的类型ID集合 - 重构任务状态判断逻辑,基于model.Completion状态进行判断 refactor(map): 统一玩家信息结构体 - 将OutInfo重命名为SimpleInfo并添加Title字段 - 更新EnterMap方法的返回类型为SimpleInfo - 修改space包中的UserInfo映射类型为SimpleInfo feat(task): 集成称号奖励到任务系统 - 在PlayerInfo结构体中添加Title字段 - 扩展TaskConfig模型支持称号奖励配置 - 更新用户信息服务处理用户名大小写转换 refactor(space): 优化空间服务数据结构 - 更新GetInfo方法返回SimpleInfo切片 - 调整UserInfo CsMap泛型类型参数 - 修改ListMapPlayerOutboundInfo中Player数组类型 style(login): 规范化用户名输入处理 - 登录时将用户名转换为小写进行比较 - 使用strings.EqualFold进行大小
This commit is contained in:
@@ -13,7 +13,8 @@ type SimUserInfoOutboundInfo struct {
|
||||
// UserID 米米号
|
||||
UserID uint32 `codec:"true"`
|
||||
|
||||
Nick string `struc:"[16]byte" default:"seer" json:"nick"` // 16字节昵称
|
||||
Nick string `struc:"[16]byte" default:"seer" json:"nick"` // 16字节昵称
|
||||
Title uint32 `struc:"uint32" json:"title"` // 称号
|
||||
|
||||
// Color rgb颜色
|
||||
Color uint32 `codec:"true"`
|
||||
@@ -80,6 +81,7 @@ type MoreUserInfoOutboundInfo struct {
|
||||
UserID uint32 `codec:"true"`
|
||||
|
||||
Nick string `struc:"[16]byte" default:"seer" json:"nick"` // 16字节昵称
|
||||
Title uint32 `struc:"uint32" json:"title"` // 称号
|
||||
RegisterTime uint32 `struc:"uint32" json:"register_time"` // 注册时间(秒时间戳)
|
||||
|
||||
// PetAllNum 所有精灵数量
|
||||
@@ -113,10 +115,6 @@ type MoreUserInfoOutboundInfo struct {
|
||||
// MaxArenaWins 星际擂台胜场
|
||||
// 对应 Java 注解: @FieldDescription("星际擂台胜场") @UInt
|
||||
MaxArenaWins uint32 `codec:"true"`
|
||||
|
||||
// CurrentTitleID 当前称号ID
|
||||
// 对应 Java 注解: @FieldDescription("当前称号ID") @UInt
|
||||
CurrentTitleID uint32 `codec:"true"`
|
||||
}
|
||||
|
||||
// AimatInboundInfo 对应Java的AimatInboundInfo类
|
||||
|
||||
Reference in New Issue
Block a user