✨ 多个自定义内容
This commit is contained in:
@ -20,9 +20,10 @@ func InitAliDrive() bool {
|
|||||||
if err!=nil {
|
if err!=nil {
|
||||||
return false
|
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)
|
log.Infof("token:%s",conf.Authorization)
|
||||||
user,err:=alidrive.GetUserInfo()
|
user,err:=alidrive.GetUserInfo()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -4,7 +4,11 @@ type Config struct {
|
|||||||
Info struct{
|
Info struct{
|
||||||
Title string `yaml:"title" json:"title"`
|
Title string `yaml:"title" json:"title"`
|
||||||
SiteUrl string `yaml:"site_url" json:"site_url"`//网站url
|
SiteUrl string `yaml:"site_url" json:"site_url"`//网站url
|
||||||
|
BackendUrl string `yaml:"backend_url" json:"backend_url"`//后端地址
|
||||||
Logo string `yaml:"logo" json:"logo"`
|
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"`
|
} `yaml:"info"`
|
||||||
Server struct{
|
Server struct{
|
||||||
Port string `yaml:"port"`//端口
|
Port string `yaml:"port"`//端口
|
||||||
|
Reference in New Issue
Block a user