李昊 %!s(int64=5) %!d(string=hai) anos
pai
achega
a759e966fe

+ 1 - 1
gx_api/GxPress/Api/GxPress.Api/AppControllers/videoController.cs

@@ -63,7 +63,7 @@ namespace GxPress.Api.AppControllers
                 //获取后缀名
                 var ext = fileInfo.Extension;
                 new FileExtensionContentTypeProvider().Mappings.TryGetValue(ext, out var contenttype);
-                return File(bytsize, contenttype ?? "application/octet-stream", fileInfo.Name);
+                return File(bytsize, "application/octet-stream", fileInfo.Name);
             }
             catch (FileNotFoundException e)
             {