Fix a lot of details.

This commit is contained in:
zicla
2018-01-01 17:44:25 +08:00
parent 8e5a85322e
commit 3cc4521882
4 changed files with 15 additions and 10 deletions

View File

@ -95,7 +95,7 @@ func (this *MatterService) Upload(file multipart.File, user *User, puuid string,
//判断用户自身上传大小的限制。
if user.SizeLimit >= 0 {
if written > user.SizeLimit {
panic("您最大只能上传" + HumanFileSize(user.SizeLimit, false) + "的文件")
panic("您最大只能上传" + HumanFileSize(user.SizeLimit) + "的文件")
}
}