多个自定义内容

This commit is contained in:
微凉
2020-12-28 11:22:54 +08:00
parent bacbf7bc1b
commit 894f840a54
2 changed files with 7 additions and 2 deletions

View File

@ -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
}
log.Infof("token:%s",conf.Authorization)
user,err:=alidrive.GetUserInfo()
if err != nil {

View File

@ -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"`//端口