Skip to content

Commit

Permalink
✨ 多个自定义内容
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Dec 28, 2020
1 parent bacbf7b commit 02e665a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bootstrap/alidrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`//端口
Expand Down

0 comments on commit 02e665a

Please # to comment.