feat: 新增战斗效果和修复登录逻辑
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-03-08 11:22:00 +08:00
committed by cnb
parent 3dd2d40c50
commit 73d7f7f062
13 changed files with 262 additions and 179 deletions

View File

@@ -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() {