浏览代码

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)
 						}