fix:base上传强制更新

This commit is contained in:
momo
2023-08-22 10:54:33 +08:00
parent 0440bd02a4
commit 462ac4915b
7 changed files with 16 additions and 14 deletions

View File

@@ -10,9 +10,6 @@ import (
"fusenapi/utils/basic"
"fusenapi/utils/encryption_decryption"
"fusenapi/utils/id_generator"
"github.com/google/uuid"
"github.com/nfnt/resize"
"gorm.io/gorm"
"image"
"image/gif"
"image/jpeg"
@@ -22,6 +19,10 @@ import (
"path"
"time"
"github.com/google/uuid"
"github.com/nfnt/resize"
"gorm.io/gorm"
"context"
"fusenapi/server/product/internal/svc"
@@ -77,7 +78,7 @@ func (l *SaveDesignLogic) SaveDesign(req *types.SaveDesignReq, userinfo *auth.Us
}
infoBytes, _ := json.Marshal(postInfo.Data)
info := string(infoBytes)
now := time.Now()
now := time.Now().UTC()
logoColorBytes, _ := json.Marshal(postInfo.Data.Logo.Colors)
logoColor := string(logoColorBytes)
saveData := gmodel.FsProductDesign{