优化配置文件的结构体,优化文件上传与下载功能,系统配置的前端展示更友好及其他的优化

This commit is contained in:
SliverHorn
2020-10-06 11:30:50 +08:00
parent 785fde0eaf
commit d16ca6967f
24 changed files with 589 additions and 375 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ func OperationRecord() gin.HandlerFunc {
UserID: userId,
}
values := c.Request.Header.Values("content-type")
if strings.Contains(values[0], "boundary"){
if len(values) >0 && strings.Contains(values[0], "boundary") {
record.Body = "file"
}
writer := responseBodyWriter{