This commit is contained in:
@@ -56,7 +56,7 @@ func (s *InfoService) Person(userid uint32) (out *model.Player) {
|
||||
|
||||
}
|
||||
|
||||
func (s *InfoService) SetLogin() *model.PlayerInfo {
|
||||
func (s *InfoService) GetLogin() *model.PlayerInfo {
|
||||
|
||||
var tt *model.Player
|
||||
s.dbm_fix(s.Model).Scan(&tt)
|
||||
@@ -93,7 +93,7 @@ func (s *InfoService) SetLogin() *model.PlayerInfo {
|
||||
|
||||
}
|
||||
|
||||
if !IsToday(tt.LastResetTime) { //判断是否是今天
|
||||
if !IsToday(tt.LastResetTime) && cool.Config.ServerInfo.IsVip == 0 { //判断是否是今天
|
||||
|
||||
//每天login时候检查重置时间,然后把电池,任务,挖矿重置
|
||||
//挖矿需要单独存,因为防止多开挖矿
|
||||
@@ -122,7 +122,7 @@ func (s *InfoService) SetLogin() *model.PlayerInfo {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
if !IsWEEK(tt.WeekLastResetTime) {
|
||||
if !IsWEEK(tt.WeekLastResetTime) && cool.Config.ServerInfo.IsVip == 0 {
|
||||
|
||||
for _, v := range service.NewTaskService().GetWeek() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user