From a6a6045065169ab56c7d44ea32dce743d940e840 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期五, 08 十二月 2023 11:15:19 +0800
Subject: [PATCH] collection改为固定12345

---
 utils/upload/seaweed.go |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/utils/upload/seaweed.go b/utils/upload/seaweed.go
index 931df16..40eea74 100644
--- a/utils/upload/seaweed.go
+++ b/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 {

--
Gitblit v1.8.0