``feat(item): 新增物品出售价格属性(SellPrice)并实现物品出售功能,优化宠物面板计算和时区判断逻辑``
This commit is contained in:
@@ -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时候检查重置时间,然后把电池,任务,挖矿重置
|
||||
|
||||
Reference in New Issue
Block a user