From 324867691ce233728df3150d494879bc63857390 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 13 十二月 2023 16:44:17 +0800
Subject: [PATCH] 修改报废编码
---
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