瀏覽代碼

update path

LinkLeong 1 年之前
父節點
當前提交
8c0b219621
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/dropbox/util.go
  2. 1 1
      drivers/google_drive/util.go

+ 1 - 1
drivers/dropbox/util.go

@@ -108,7 +108,7 @@ func (d *Dropbox) getFiles(path string) ([]File, error) {
 func GetConfig() Dropbox {
 func GetConfig() Dropbox {
 	dp := Dropbox{}
 	dp := Dropbox{}
 	dp.RootFolderID = ""
 	dp.RootFolderID = ""
-	dp.AuthUrl = "https://www.dropbox.com/oauth2/authorize?client_id=" + app_key + "&redirect_uri=https://cloudoauth.files.casaos.app&response_type=code&token_access_type=offline&state=${HOST}%2Fv2%2Frecover%2FDropbox&&force_reapprove=true&force_reauthentication=true"
+	dp.AuthUrl = "https://www.dropbox.com/oauth2/authorize?client_id=" + app_key + "&redirect_uri=https://cloudoauth.files.casaos.app&response_type=code&token_access_type=offline&state=${HOST}%2Fv1%2Frecover%2FDropbox&&force_reapprove=true&force_reauthentication=true"
 	dp.AppKey = app_key
 	dp.AppKey = app_key
 	dp.AppSecret = app_secret
 	dp.AppSecret = app_secret
 	dp.Icon = "./img/driver/Dropbox.svg"
 	dp.Icon = "./img/driver/Dropbox.svg"

+ 1 - 1
drivers/google_drive/util.go

@@ -160,7 +160,7 @@ func GetConfig() GoogleDrive {
 	config.ClientID = client_id
 	config.ClientID = client_id
 	config.ClientSecret = client_secret
 	config.ClientSecret = client_secret
 	config.RootFolderID = "root"
 	config.RootFolderID = "root"
-	config.AuthUrl = "https://accounts.google.com/o/oauth2/auth/oauthchooseaccount?response_type=code&client_id=" + client_id + "&redirect_uri=https%3A%2F%2Fcloudoauth.files.casaos.app&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&access_type=offline&approval_prompt=force&state=${HOST}%2Fv2%2Frecover%2FGoogleDrive&service=lso&o2v=1&flowName=GeneralOAuthFlow"
+	config.AuthUrl = "https://accounts.google.com/o/oauth2/auth/oauthchooseaccount?response_type=code&client_id=" + client_id + "&redirect_uri=https%3A%2F%2Fcloudoauth.files.casaos.app&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&access_type=offline&approval_prompt=force&state=${HOST}%2Fv1%2Frecover%2FGoogleDrive&service=lso&o2v=1&flowName=GeneralOAuthFlow"
 	config.Icon = "./img/driver/GoogleDrive.svg"
 	config.Icon = "./img/driver/GoogleDrive.svg"
 
 
 	return config
 	return config