diff --git a/drivers/139/meta.go b/drivers/139/meta.go index f9e7f122821..f154b4c5cf9 100644 --- a/drivers/139/meta.go +++ b/drivers/139/meta.go @@ -6,8 +6,8 @@ import ( ) type Addition struct { - Account string `json:"account" required:"true"` - Cookie string `json:"cookie" type:"text" required:"true"` + Account string `json:"account" required:"true"` + Authorization string `json:"authorization" type:"text" required:"true"` driver.RootID Type string `json:"type" type:"select" options:"personal,family" default:"personal"` CloudID string `json:"cloud_id"` diff --git a/drivers/139/util.go b/drivers/139/util.go index 30e997b0c73..5dcf8dca3e5 100644 --- a/drivers/139/util.go +++ b/drivers/139/util.go @@ -72,7 +72,7 @@ func (d *Yun139) request(pathname string, method string, callback base.ReqCallba req.SetHeaders(map[string]string{ "Accept": "application/json, text/plain, */*", "CMS-DEVICE": "default", - "Cookie": d.Cookie, + "Authorization": d.Authorization, "mcloud-channel": "1000101", "mcloud-client": "10701", //"mcloud-route": "001",