Skip to content

Commit c91113d

Browse files
author
cyk
committed
test nil
1 parent 7398e7d commit c91113d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/baidu_netdisk/types.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"time"
88

99
"github.com/OpenListTeam/OpenList/v4/internal/model"
10-
"github.com/OpenListTeam/OpenList/v4/pkg/utils"
1110
)
1211

1312
var (
@@ -76,9 +75,7 @@ func fileToObj(f File) *model.ObjThumb {
7675
Modified: time.Unix(f.ServerMtime, 0),
7776
Ctime: time.Unix(f.ServerCtime, 0),
7877
IsFolder: f.Isdir == 1,
79-
80-
// 直接获取的MD5是错误的
81-
HashInfo: utils.NewHashInfo(utils.MD5, DecryptMd5(f.Md5)),
78+
// 百度API返回的MD5不可信,不使用HashInfo
8279
},
8380
Thumbnail: model.Thumbnail{Thumbnail: f.Thumbs.Url3},
8481
}

0 commit comments

Comments
 (0)