fix: 修正伤害类型和任务状态判断逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -104,7 +104,7 @@ func (s *InfoService) SetLogin() *model.PlayerInfo {
|
||||
//tt.Data.FightTime = 60 * 60 * 2 //重置战斗次数
|
||||
|
||||
for _, v := range service.NewTaskService().GetDaily() {
|
||||
if v.IsAcceptable == 0 {
|
||||
if v.IsAcceptable == 1 {
|
||||
tt.Data.SetTask(int(v.TaskId), model.Unaccepted)
|
||||
} else {
|
||||
tt.Data.SetTask(int(v.TaskId), model.Reserved)
|
||||
@@ -127,7 +127,7 @@ func (s *InfoService) SetLogin() *model.PlayerInfo {
|
||||
tt.WeekLastResetTime = gtime.Now()
|
||||
for _, v := range service.NewTaskService().GetWeek() {
|
||||
|
||||
if v.IsAcceptable == 0 {
|
||||
if v.IsAcceptable == 1 {
|
||||
tt.Data.SetTask(int(v.TaskId), model.Unaccepted)
|
||||
} else {
|
||||
tt.Data.SetTask(int(v.TaskId), model.Reserved)
|
||||
|
||||
Reference in New Issue
Block a user