This commit is contained in:
wucongxing8150 2024-09-12 14:09:01 +08:00
parent ba892a481d
commit 7cf78649da
2 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ func (r *Article) AddArticle(c *gin.Context) {
return
}
article.ArticleNumber = fmt.Sprintf("%d", 1000+total)
article.ArticleNumber = fmt.Sprintf("%d", 1000+total+1)
article, err = articleDao.AddArticle(tx, article)
if err != nil {

View File

@ -316,7 +316,7 @@ func (r *Video) AddVideo(c *gin.Context) {
return
}
video.VideoNumber = fmt.Sprintf("%d", 1000+total)
video.VideoNumber = fmt.Sprintf("%d", 1000+total+1)
video, err = videoDao.AddVideo(tx, video)
if err != nil {