jiangshuai
2023-12-08 a6a6045065169ab56c7d44ea32dce743d940e840
collection改为固定12345
1个文件已修改
3 ■■■■ 已修改文件
utils/upload/seaweed.go 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/upload/seaweed.go
@@ -3,7 +3,6 @@
import (
    "basic.com/fileserver/WeedFSClient.git"
    uuid "github.com/satori/go.uuid"
    "strconv"
    "time"
    "wms/conf"
    "wms/pkg/logx"
@@ -11,7 +10,7 @@
func UploadFileToSeaWeed(fileType, ext string, fileBytes []byte) (string, error) {
    //assignUrl := conf.WebConf.FileServer + "/dir/assign?collection=" + time.Now().Format("2006-01-02 15:04:05")[:10] + "-" + conf.WebConf.ServerId + "-" + fileType
    assignUrl := conf.WebConf.FileServer + "/dir/assign?collection=" + strconv.FormatInt(time.Now().Unix(), 10) + "-" + conf.WebConf.ServerId + "-" + fileType
    assignUrl := conf.WebConf.FileServer + "/dir/assign?collection=12345-" + conf.WebConf.ServerId + "-" + fileType
    picUrl, err := WeedFSClient.GetFid(assignUrl)
    if err != nil {