瀏覽代碼

七牛云

master
huangjiajun 3 週之前
父節點
當前提交
7405083615
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      app/hdl/hdl_qiniuyun.go

+ 1
- 2
app/hdl/hdl_qiniuyun.go 查看文件

@@ -104,8 +104,7 @@ func getFileNameURL(c *gin.Context, filename string) string {

protocol := NewSysCfgDb.SysCfgGetWithDb("file_bucket_scheme")
domain := NewSysCfgDb.SysCfgGetWithDb("file_bucket_host")
imgformat := NewSysCfgDb.SysCfgGetWithDb("file_avatar_thumbnail")
if protocol != "" && domain != "" && imgformat != "" {
if protocol != "" && domain != "" {
return protocol + "://" + domain + "/" + filename
}
return filename


Loading…
取消
儲存