From 740508361597e303d6c713cc129c25d96da8b663 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 26 Aug 2024 17:17:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=83=E7=89=9B=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_qiniuyun.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/hdl/hdl_qiniuyun.go b/app/hdl/hdl_qiniuyun.go index 121bf84..a3ec7d0 100644 --- a/app/hdl/hdl_qiniuyun.go +++ b/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