@@ -2,6 +2,7 @@
/log
latest_log
/config/config.yaml
+/config/config_release.yaml
.DS_Store
go.sum
/binlog
@@ -110,6 +110,10 @@ func GetChartInfoDetail(c *gin.Context) {
} else {
startDate = startDate + "-01"
}
+ //兼容日期数据为2022-09的错误
+ if strings.Count(startDate, "-") == 1 {
+ startDate = startDate + "-01"
+ }
case 7:
startDate = "2018-01-01"
case 8:
@@ -101,6 +101,7 @@ func Comment(user user.UserInfo, req reqComment.ReqComment) (ret response.RespCo
ModifyTime: now,
OldReportId: req.OldReportId,
OldReportChapterId: req.OldReportChapterId,
+ IsHot: 1,
err = commentInfo.Create()
if err != nil {