2
This commit is contained in:
parent
ba892a481d
commit
7cf78649da
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user