fix:上传模块调整
This commit is contained in:
parent
68b125f5a6
commit
ff6167e713
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user