feat(xml): 更新任务配置结构以支持新能量节点解析 将原先的 TalkCount 和 TalkEntry 结构替换为 TalkRoot 和 Energy, 以适配新的 XML 配置格式。同时更新了相关引用代码以确保类型一致性。 refactor(item): 优化物品添加方法支持可变参数传入 调整 ItemAdd 方法签名,从接收数组改为接收可变参数, 提升调用灵活性,并同步修改控制器中对物品添加逻辑的处理方式。 feat(login): 修复每日重置逻辑并引入 gtime 时间管理 修正登录时每日任务重置区间错误(400~100 改为 400~500), 并改用 gtime.Now().Time 提供更准确的时间戳记录与比较, 同时增强挖矿次数等
26 lines
1.1 KiB
Go
26 lines
1.1 KiB
Go
package item
|
||
|
||
import "blazing/logic/service/player"
|
||
|
||
type TalkCountInboundInfo struct {
|
||
Head player.TomeeHeader `cmd:"2701" struc:"[0]pad"`
|
||
ID uint32 `description:"奖品的Type, 即ID" codec:"uint"` // @UInt long -> uint64,字段描述对应@FieldDescription
|
||
}
|
||
type TalkCountOutboundInfo struct {
|
||
GiftCount uint32 `description:"已领取奖励的次数" codec:"uint"` // @UInt long -> uint64,字段描述对应@FieldDescription
|
||
}
|
||
type TalkCateInboundInfo struct {
|
||
Head player.TomeeHeader `cmd:"2702" struc:"[0]pad"`
|
||
ID uint32 `description:"奖品的Type, 即ID" codec:"uint"` // @UInt long -> uint64,字段描述对应@FieldDescription
|
||
}
|
||
type DayTalkInfo struct {
|
||
CateList uint32 `description:"要序列list数量字段 只序列数量 结构体数据给null"` // 对应Java的cateList
|
||
OutListLen uint32 `struc:"sizeof=OutList"`
|
||
OutList []CateInfo `description:"实际发放奖励使用的是outlist"` // 对应Java的outList
|
||
}
|
||
type CateInfo struct {
|
||
// 示例字段,需替换为实际定义
|
||
ID uint32
|
||
Count uint32
|
||
}
|