diff --git a/service/repositories/image_handle.go b/service/repositories/image_handle.go index ffacf0d2..6ff54137 100644 --- a/service/repositories/image_handle.go +++ b/service/repositories/image_handle.go @@ -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,