@@ -580,7 +580,7 @@ func (this *CloudDiskController) ResourceUpload() {
_ = os.Remove(filePath)
}()
// 上传到阿里云
- ossDir := utils.STATIC_DIR + "cloud_disk/"
+ ossDir := utils.RESOURCE_DIR + "cloud_disk/"
resourceUrl := ``
//上传到阿里云 和 minio
@@ -538,7 +538,7 @@ func (this *PptV2Controller) PptUpload() {
defer func() {
_ = os.Remove(fpath)
- hzUploadDir := utils.STATIC_DIR + "ppt/"
+ hzUploadDir := utils.RESOURCE_DIR + "ppt/"
savePptxToOssPath := hzUploadDir + time.Now().Format("200601/20060102/")
//pptName := strings.Replace(pptItem.Title, "\n", "", -1)
@@ -33,6 +33,7 @@ var (
JhGnAppKey string // 聚合短信,国内AppKey
JhGjAppKey string // 聚合短信,国际AppKey
ResourceProxyUrl string // 代理资源地址
+ RESOURCE_DIR string
)
// ES配置
@@ -313,6 +314,11 @@ func init() {
// 代理资源地址
ResourceProxyUrl = config["resource_proxy_url"]
+ RESOURCE_DIR = config["resource_dir"]
+ if RESOURCE_DIR == "" {
+ RESOURCE_DIR = "eta/"
+ }
+
// 系统内部服务地址
{
// 公共指标库相关