diff --git a/drivers/123/types.go b/drivers/123/types.go index 15e05a15..7e5967d8 100644 --- a/drivers/123/types.go +++ b/drivers/123/types.go @@ -28,7 +28,7 @@ func (f File) CreateTime() time.Time { } func (f File) GetHash() utils.HashInfo { - return utils.HashInfo{} + return utils.NewHashInfo(utils.MD5, f.Etag) } func (f File) GetPath() string { diff --git a/drivers/123_share/types.go b/drivers/123_share/types.go index 6062e846..3919c5fa 100644 --- a/drivers/123_share/types.go +++ b/drivers/123_share/types.go @@ -24,7 +24,7 @@ type File struct { } func (f File) GetHash() utils.HashInfo { - return utils.HashInfo{} + return utils.NewHashInfo(utils.MD5, f.Etag) } func (f File) GetPath() string {