From 7916f909922721482ed0c397b7ee4c7da7313e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Sat, 4 Apr 2026 14:00:36 +0800 Subject: [PATCH] =?UTF-8?q?```=20refactor(player):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=BA=9F=E5=BC=83=E7=9A=84=E5=AE=A0=E7=89=A9=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=AE=A1=E6=95=B0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了 PlayerInfo 结构体中不再使用的 PetListCount 字段, 该字段为旧登录协议中的精灵列表长度,现已废弃并不再使用。 ``` --- modules/player/model/info.go | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/player/model/info.go b/modules/player/model/info.go index a831557a3..689258f60 100644 --- a/modules/player/model/info.go +++ b/modules/player/model/info.go @@ -205,7 +205,6 @@ type PlayerInfo struct { Badge uint32 `struc:"uint32" default:"0" json:"badge"` // 默认0 Reserved1 [27]byte `struc:"[27]byte" default:"3" json:"reserved1"` // 27字节默认3 TaskList [1000]byte `struc:"[1000]byte" default:"0" json:"task_list"` // 任务状态数组500字节,默认3 - PetListCount uint32 `struc:"skip" json:"pet_list_count"` // 旧登录协议精灵列表长度(已跳过) PetList []PetInfo `struc:"skip" json:"pet_list"` // 精灵背包内信息(不再走旧登录包体) BackupPetList []PetInfo `struc:"skip" json:"backup_pet_list"` // 精灵并列备用列表 ClothesCount uint32 `struc:"sizeof=Clothes" json:"clothes_count"` // 穿戴装备数量