From 02e665ae3700e1a4caebdf610df3d7e48253465f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <36558727+Xhofe@users.noreply.github.com> Date: Mon, 28 Dec 2020 11:22:54 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=A4=9A=E4=B8=AA=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap/alidrive.go | 5 +++-- conf/config.go | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bootstrap/alidrive.go b/bootstrap/alidrive.go index 39f251bf8ca..0da8318daa3 100644 --- a/bootstrap/alidrive.go +++ b/bootstrap/alidrive.go @@ -20,9 +20,10 @@ func InitAliDrive() bool { if err!=nil { return false } - conf.Authorization=token.TokenType+" "+token.AccessToken + conf.Authorization=token.TokenType+"\t"+token.AccessToken + }else { + conf.Authorization=conf.Bearer+conf.Conf.AliDrive.AccessToken } - conf.Authorization=conf.Bearer+conf.Conf.AliDrive.AccessToken log.Infof("token:%s",conf.Authorization) user,err:=alidrive.GetUserInfo() if err != nil { diff --git a/conf/config.go b/conf/config.go index 3b8e5eb5dc6..9e5e8231b88 100644 --- a/conf/config.go +++ b/conf/config.go @@ -4,7 +4,11 @@ type Config struct { Info struct{ Title string `yaml:"title" json:"title"` SiteUrl string `yaml:"site_url" json:"site_url"`//网站url + BackendUrl string `yaml:"backend_url" json:"backend_url"`//后端地址 Logo string `yaml:"logo" json:"logo"` + FooterText string `yaml:"footer_text" json:"footer_text"` + FooterUrl string `yaml:"footer_url" json:"footer_url"` + MusicImg string `yaml:"music_img" json:"music_img"` } `yaml:"info"` Server struct{ Port string `yaml:"port"`//端口