- change bill ext to .lsx

This commit is contained in:
gazebo
2018-10-31 22:16:17 +08:00
parent 169a5bd374
commit 5212f8a065
2 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"mime/multipart"
"path"
"strings"
"time"
@@ -60,7 +59,7 @@ func SendFilesToStores(ctx *jxcontext.Context, files []*multipart.FileHeader, is
globals.SugarLogger.Debugf("SendFilesToStores upload file:%s", fileHeader.Filename)
if err == nil {
ret := storage.PutRet{}
key := "storeBill_" + utils.Int2Str(storeID) + "_" + strings.ToLower(utils.GetUUID()) + path.Ext(fileHeader.Filename)
key := "storeBill_" + utils.Int2Str(storeID) + "_" + strings.ToLower(utils.GetUUID()) + ".lsx" //path.Ext(fileHeader.Filename)
formUploader := storage.NewFormUploader(cfg)
err = formUploader.Put(context.Background(), &ret, upToken, key, file, fileHeader.Size, nil)
file.Close()