fix: should use CompressSize
to check size of files before creating compress task
This commit is contained in:
parent
c62e355345
commit
11043b43e6
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ func (service *ItemCompressService) CreateCompressTask(c *gin.Context) serialize
|
|||
}
|
||||
|
||||
// 文件尺寸限制
|
||||
if fs.User.Group.OptionsSerialized.DecompressSize != 0 && totalSize > fs.User.Group.
|
||||
if fs.User.Group.OptionsSerialized.CompressSize != 0 && totalSize > fs.User.Group.
|
||||
OptionsSerialized.CompressSize {
|
||||
return serializer.Err(serializer.CodeParamErr, "文件太大", nil)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue