Fix: unable to read file from UPYUN (#472, #472, #836)

pull/911/head
HFO4 3 years ago
parent 641fe352da
commit 8659bdcf77

@ -105,9 +105,6 @@ func (handler Driver) List(ctx context.Context, base string, recursive bool) ([]
// Get 获取文件
func (handler Driver) Get(ctx context.Context, path string) (response.RSCloser, error) {
// 给文件名加上随机参数以强制拉取
path = fmt.Sprintf("%s?v=%d", path, time.Now().UnixNano())
// 获取文件源地址
downloadURL, err := handler.Source(
ctx,

Loading…
Cancel
Save