ソースを参照

Merge branch 'ETA_1.9.4' into debug

zwxi 8 ヶ月 前
コミット
0d1ee20b3c
1 ファイル変更2 行追加2 行削除
  1. 2 2
      services/data/chart_info.go

+ 2 - 2
services/data/chart_info.go

@@ -3863,7 +3863,7 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
 						}
 						var newDate time.Time
 						if seasonConfig.JumpYear == 1 {
-							newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year() - 1, 0, 0)
+							newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year() + 1, 0, 0)
 						} else {
 							newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year(), 0, 0)
 						}
@@ -3905,7 +3905,7 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
 						}
 						var newDate time.Time
 						if seasonConfig.JumpYear == 1 {
-							newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year() - 1, 0, 0)
+							newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year() + 1, 0, 0)
 						} else {
 							newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year(), 0, 0)
 						}