优化配置文件的结构体,优化文件上传与下载功能,系统配置的前端展示更友好及其他的优化
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user