fix:上传模块调整

This commit is contained in:
Hiven 2023-08-17 17:20:43 +08:00
parent 68b125f5a6
commit ff6167e713

View File

@ -197,7 +197,7 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
// logo_url:"https://s3.amazon.com/xxxx"
// result: "$saa541afaldjaldjasldjsadjsapsaasda"
// }
var fileBase = resultData["result"]
var fileBase = resultData["result"].(string)
// 上传文件
var upload = file.Upload{
@ -208,7 +208,7 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
uploadRes, err := upload.UploadFileByBase64(&file.UploadBaseReq{
Source: "combine-image",
FileHash: resourceId,
FileData: fileBase.(string),
FileData: fileBase,
UploadBucket: 1,
ApiType: 2,
UserId: in.UserId,