From 6f7465aab7fa654cccf94d3a1a94842247ed8988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Thu, 13 Jan 2022 18:01:54 +0800 Subject: [PATCH] :bug: fix 139Yun no user error --- drivers/139/139.go | 2 +- drivers/139/driver.go | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/139/139.go b/drivers/139/139.go index acfca0f9..71ad64c2 100644 --- a/drivers/139/139.go +++ b/drivers/139/139.go @@ -158,7 +158,7 @@ func (driver Cloud139) GetLink(contentId string, account *model.Account) (string "appName": "", "contentID": contentId, "commonAccountInfo": base.Json{ - "account": "18627147660", + "account": account.Username, "accountType": 1, }, } diff --git a/drivers/139/driver.go b/drivers/139/driver.go index 1713e476..84286c9a 100644 --- a/drivers/139/driver.go +++ b/drivers/139/driver.go @@ -131,7 +131,12 @@ func (driver Cloud139) Link(args base.Args, account *model.Account) (*base.Link, if err != nil { return nil, err } - u, err := driver.GetLink(file.Id, account) + var u string + //if isFamily(account) { + // u, err = driver.familyLink(file.Id, account) + //} else { + u, err = driver.GetLink(file.Id, account) + //} if err != nil { return nil, err }