Fix some UI things.

This commit is contained in:
zicla
2018-12-07 19:33:18 +08:00
parent f4d9bbb746
commit cbfa8a7110
12 changed files with 25 additions and 17 deletions

View File

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