Files
bl/logic/service/item/talk.go
昔念 9739598df2 ```
feat(xml): 更新任务配置结构以支持新能量节点解析

将原先的 TalkCount 和 TalkEntry 结构替换为 TalkRoot 和 Energy,
以适配新的 XML 配置格式。同时更新了相关引用代码以确保类型一致性。

refactor(item): 优化物品添加方法支持可变参数传入

调整 ItemAdd 方法签名,从接收数组改为接收可变参数,
提升调用灵活性,并同步修改控制器中对物品添加逻辑的处理方式。

feat(login): 修复每日重置逻辑并引入 gtime 时间管理

修正登录时每日任务重置区间错误(400~100 改为 400~500),
并改用 gtime.Now().Time 提供更准确的时间戳记录与比较,
同时增强挖矿次数等
2025-10-23 01:02:19 +08:00

26 lines
1.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
}