🐛 ali proxy

pull/548/head
微凉 2021-10-30 21:06:38 +08:00
parent eb358e6ede
commit 47bea7cc38
3 changed files with 3 additions and 3 deletions

View File

@ -166,6 +166,6 @@ func initSettings() {
}
textTypes, err := model.GetSettingByKey("text types")
if err==nil{
conf.ImageTypes = strings.Split(textTypes.Value,",")
conf.TextTypes = strings.Split(textTypes.Value,",")
}
}

View File

@ -189,7 +189,7 @@ func (a AliDrive) Link(path string, account *model.Account) (string, error) {
if err != nil {
return "", err
}
parentFiles_, _ := conf.Cache.Get(conf.Ctx, dir)
parentFiles_, _ := conf.Cache.Get(conf.Ctx, fmt.Sprintf("%s%s", account.Name, dir))
parentFiles, _ := parentFiles_.([]AliFile)
for _, file := range parentFiles {
if file.Name == name {

View File

@ -21,7 +21,7 @@ func SaveSettings(ctx *fiber.Ctx) error {
} else {
textTypes, err := model.GetSettingByKey("text types")
if err==nil{
conf.ImageTypes = strings.Split(textTypes.Value,",")
conf.TextTypes = strings.Split(textTypes.Value,",")
}
return SuccessResp(ctx)
}