Skip to content

Commit

Permalink
fix images 404
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Feb 17, 2022
1 parent b816b03 commit a30c1c5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
60 changes: 30 additions & 30 deletions data/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions xfs/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ const svg404 = `
// processGetURL 返回文件CDN地址
func processGetURL(process *gou.Process) interface{} {
if len(process.Args) < 1 {
return string(data.MustAsset("xiang/data/icons/404.png"))
return string(data.MustAsset("yao/data/icons/404.png"))
}

filename := process.ArgsString(0)
body, err := Stor.ReadFile(filename)
if err != nil {
return string(data.MustAsset("xiang/data/icons/404.png"))
return string(data.MustAsset("yao/data/icons/404.png"))
}
return string(body)
}

0 comments on commit a30c1c5

Please sign in to comment.