Skip to content

Commit

Permalink
fix download error
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Dec 25, 2021
1 parent 0523547 commit 2ea0f58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/file/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ var (
)

// GetLazyData 获取懒加载数据
// 传入的 path 的前缀 data/
// 在验证完 md5 后将被删去
// 以便进行下载
func GetLazyData(path string, isReturnDataBytes, isDataMustEqual bool) ([]byte, error) {
var data []byte
var resp *http.Response
var filemd5 *[16]byte
var ms string

u := dataurl + path
u := dataurl + path[5:]
lzmu.Lock()
logrus.Infoln("[file]检查懒加载文件:", path)
err := registry.Connect()
Expand Down

0 comments on commit 2ea0f58

Please sign in to comment.