From 4040990d155fdcf9953b498a4be783abd2dd134e Mon Sep 17 00:00:00 2001 From: zengge99 <83830807+zengge99@users.noreply.github.com> Date: Mon, 17 Jun 2024 11:30:01 +0800 Subject: [PATCH] Update driver.go --- drivers/quark_share/driver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/quark_share/driver.go b/drivers/quark_share/driver.go index 05712a32d7e..78451e84b95 100644 --- a/drivers/quark_share/driver.go +++ b/drivers/quark_share/driver.go @@ -38,7 +38,7 @@ func (d *QuarkShare) GetAddition() driver.Additional { func (d *QuarkShare) Init(ctx context.Context) error { _, err := d.request("/config", http.MethodGet, nil, nil) d.getStoken() - linkMap = make(map[string]*model.Link) + d.linkMap = make(map[string]*model.Link) return err } @@ -63,7 +63,7 @@ func (d *QuarkShare) Link(ctx context.Context, file model.Obj, args model.LinkAr fid := d.save(file) link, err := d.link(file, fid) if err == nil { - linkMap[file.GetID()] = link + d.linkMap[file.GetID()] = link } d.delete(fid) return link, err