fix(task): 将新手任务和超NO奖励从任务完成移至注册时初始化

This commit is contained in:
1
2025-10-23 06:04:05 +00:00
parent 8db95adefe
commit 3df38d5626
2 changed files with 6 additions and 6 deletions

View File

@@ -38,6 +38,11 @@ func (s *UserService) Reg(nick string, color uint32) {
//设置用户信息
t.Data = model.NewPlayerInfo()
t.Data.Nick = nick
t.Data.TaskList[3] = 3 //新手任务
for i := 0; i < 80; i++ { //超NO芯片填充
t.Data.NonoChipList[i] = 255
}
t.Data.Color = color
t.Data.RegisterTime = uint32(time.Now().Unix()) //写入注册时间