|
@@ -104,8 +104,7 @@ func getFileNameURL(c *gin.Context, filename string) string { |
|
|
|
|
|
|
|
|
protocol := NewSysCfgDb.SysCfgGetWithDb("file_bucket_scheme") |
|
|
protocol := NewSysCfgDb.SysCfgGetWithDb("file_bucket_scheme") |
|
|
domain := NewSysCfgDb.SysCfgGetWithDb("file_bucket_host") |
|
|
domain := NewSysCfgDb.SysCfgGetWithDb("file_bucket_host") |
|
|
imgformat := NewSysCfgDb.SysCfgGetWithDb("file_avatar_thumbnail") |
|
|
|
|
|
if protocol != "" && domain != "" && imgformat != "" { |
|
|
|
|
|
|
|
|
if protocol != "" && domain != "" { |
|
|
return protocol + "://" + domain + "/" + filename |
|
|
return protocol + "://" + domain + "/" + filename |
|
|
} |
|
|
} |
|
|
return filename |
|
|
return filename |
|
|