fix(task): 将新手任务和超NO奖励从任务完成移至注册时初始化
This commit is contained in:
@@ -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()) //写入注册时间
|
||||
|
||||
Reference in New Issue
Block a user