This commit is contained in:
wucongxing8150 2024-12-06 15:17:04 +08:00
parent 79bd53cc80
commit 8cbcefaa39

View File

@ -317,7 +317,7 @@ func (r *Video) AddVideo(c *gin.Context) {
}
// 生成视频编号
video.VideoNumber = fmt.Sprintf("%d", 2000+total+1)
video.VideoNumber = fmt.Sprintf("%03d", total+1)
video, err = videoDao.AddVideo(tx, video)
if err != nil {