|
@@ -51,11 +51,6 @@ func ImgReqUpload(c *gin.Context) { |
|
|
e.OutErr(c, e.ERR_INVALID_ARGS) |
|
|
e.OutErr(c, e.ERR_INVALID_ARGS) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
// 限制用户上传目录 |
|
|
|
|
|
if _, ok := md2.FileUserDir[args.Dir]; !ok { |
|
|
|
|
|
e.OutErr(c, e.ERR_FORBIDEN) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
scheme := "http" |
|
|
scheme := "http" |
|
|
if c.Request.TLS != nil { |
|
|
if c.Request.TLS != nil { |
|
|
scheme = "https" |
|
|
scheme = "https" |
|
|