feat:完成企业和专家导入功能,缺少保存数据表中

This commit is contained in:
henry
2022-05-04 21:29:08 +08:00
parent f42be17ce8
commit c64ab8cf49

View File

@ -52,7 +52,7 @@ func (this *UploadConfig) Handle() Handle {
return nil, errors.New("文件类型限制不可上传")
}
if !this.size(file.Size) {
if this.Size > 0 && !this.size(file.Size) {
return nil, errors.New("文件过大不可上传")
}
// 判断目录是否存在