|
@@ -33,7 +33,7 @@ func (l *UploadLogic) Upload(in *pb.UploadReq) (*pb.UploadResp, error) {
|
|
|
if in.NeedEncryption {
|
|
|
key = entity.GetHashKey(in.File) + entity.TypeByExt(in.Name)
|
|
|
} else {
|
|
|
- key = in.Name + entity.TypeByExt(in.Name)
|
|
|
+ key = in.Name
|
|
|
}
|
|
|
b, err := entity.OssPutObject(key, bytes.NewReader(in.File), common.InterfaceToStr(in.OssBucketName))
|
|
|
logx.Info("----------", time.Since(t1))
|