feat:完善项目

This commit is contained in:
henry
2022-01-17 09:57:57 +08:00
parent 6d075dab4f
commit b50fdb0d44
30 changed files with 70 additions and 84 deletions

View File

@ -45,7 +45,7 @@ type ImageForm struct {
}
func (this *ImageForm) FilterImageURL() string {
return strings.Replace(this.Image, config.SettingInfo.Domain, "", -1)
return strings.Replace(this.Image, config.SystemConfig[config.SysImageDomain], "", -1)
}
type ImagesForm struct {
@ -56,7 +56,7 @@ func (this *ImagesForm) FilterImageURL() string {
out := make([]string, 0)
for _, v := range strings.Split(this.Images, ",") {
out = append(out, strings.Replace(v, config.SettingInfo.Domain, "", -1))
out = append(out, strings.Replace(v, config.SystemConfig[config.SysImageDomain], "", -1))
}
return strings.Join(out, ",")
}
@ -66,7 +66,7 @@ type FileForm struct {
}
func (this *FileForm) FilterURL() string {
return strings.Replace(this.File, config.SettingInfo.Domain, "", -1)
return strings.Replace(this.File, config.SystemConfig[config.SysImageDomain], "", -1)
}
type PositionForm struct {