fix:上传模块调整
This commit is contained in:
parent
8996424556
commit
c1fddf2a14
|
@ -88,6 +88,7 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
|
||||||
imageTypes["image/tiff"] = struct{}{}
|
imageTypes["image/tiff"] = struct{}{}
|
||||||
imageTypes["image/webp"] = struct{}{}
|
imageTypes["image/webp"] = struct{}{}
|
||||||
imageTypes["image/svg+xml"] = struct{}{}
|
imageTypes["image/svg+xml"] = struct{}{}
|
||||||
|
|
||||||
// 判断文件类型是否为图片
|
// 判断文件类型是否为图片
|
||||||
_, ok := imageTypes[fileType]
|
_, ok := imageTypes[fileType]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user