浏览代码

阿里云配置修改

xyxie 1 年之前
父节点
当前提交
228c6a470e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/oss.go

+ 1 - 1
services/oss.go

@@ -37,7 +37,7 @@ func UploadAliyun(filename, filepath string) (string, error) {
 	if err != nil {
 		return "2", err
 	}
-	path := utils.Upload_dir + time.Now().Format("200601/20060102/")
+	path := utils.UploadDir + time.Now().Format("200601/20060102/")
 	path += filename
 	err = bucket.PutObjectFromFile(path, filepath)
 	if err != nil {