``feat(item): 新增物品出售价格属性(SellPrice)并实现物品出售功能,优化宠物面板计算和时区判断逻辑``

This commit is contained in:
1
2025-12-12 19:10:09 +00:00
parent 3242207f95
commit cedb02faf7
35 changed files with 172 additions and 152 deletions

View File

@@ -39,12 +39,7 @@ func (s *InfoService) Reg(nick string, color uint32) {
//设置用户信息
t.Data = model.NewPlayerInfo()
t.Data.Nick = nick
// for i := 0; i < 80; i++ { //超NO芯片填充
// t.Data.NonoChipList[i] = 255
// }
t.Data.UserID = s.userid
t.Data.Color = color
t.Data.RegisterTime = uint32(time.Now().Unix()) //写入注册时间
@@ -76,6 +71,8 @@ func (s *InfoService) Personself() *model.PlayerInfo {
if err != nil {
return nil
}
tt.Data.AllPetNumber = uint32(NewPetService(s.userid).PetCount(0))
if !IsToday(tt.LastResetTime) { //判断是否是今天
//每天login时候检查重置时间然后把电池任务挖矿重置