1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-02-16 02:43:17 +08:00
committed by cnb
parent 3d110af911
commit c26ecff9f2
2 changed files with 10 additions and 9 deletions

View File

@@ -64,15 +64,15 @@ func (p *Player) Save() {
}
// 经验倍数返回
func (p *Player) CanGetExp() int {
func (p *Player) CanGetExp() (int, int) {
if p.Info.TimeToday >= p.Info.TimeLimit {
return 0
return 0, 0
}
islogintime := (int64(time.Now().Unix()) - int64(p.Logintime))
if islogintime > (p.Info.TimeLimit - p.Info.TimeToday) {
return 0
return 0, 0
}
base := 1
if p.Info.TwoTimes != 0 {
@@ -85,5 +85,5 @@ func (p *Player) CanGetExp() int {
base *= 3
}
return base
return base, 1
}