mirror of https://github.com/Xhofe/alist
🐛 ali proxy
parent
eb358e6ede
commit
47bea7cc38
|
@ -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,",")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue