Skip to content

Commit

Permalink
Optimize verification code resources
Browse files Browse the repository at this point in the history
  • Loading branch information
wenlng committed Dec 19, 2021
1 parent 7bb5646 commit 108a642
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ func main(){
// ====================================================
capt.SetFont([]string{
path + "/__example/resources/fonts/fzshengsksjw_cu.ttf",
path + "/__example/resources/fonts/fzssksxl.ttf",
})

// ====================================================
Expand Down Expand Up @@ -352,7 +351,6 @@ func main(){
// ==========================
capt.SetFont([]string{
path + "/__example/resources/fonts/fzshengsksjw_cu.ttf",
path + "/__example/resources/fonts/fzssksxl.ttf",
})
capt.SetBackground([]string{
path + "/__example/resources/images/1.jpg",
Expand Down
2 changes: 0 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ func main(){
// ====================================================
capt.SetFont([]string{
path + "/__example/resources/fonts/fzshengsksjw_cu.ttf",
path + "/__example/resources/fonts/fzssksxl.ttf",
})

// ====================================================
Expand Down Expand Up @@ -354,7 +353,6 @@ func main(){
// ==========================
capt.SetFont([]string{
path + "/__example/resources/fonts/fzshengsksjw_cu.ttf",
path + "/__example/resources/fonts/fzssksxl.ttf",
})
capt.SetBackground([]string{
path + "/__example/resources/images/1.jpg",
Expand Down
1 change: 0 additions & 1 deletion __example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func getCaptchaData(w http.ResponseWriter, r *http.Request) {

// capt.SetFont([]string{
// getPWD() + "/resources/fonts/fzshengsksjw_cu.ttf",
// getPWD() + "/resources/fonts/fzssksxl.ttf",
// getPWD() + "/resources/fonts/hyrunyuan.ttf",
// })
//
Expand Down
Binary file removed __example/resources/fonts/fzssksxl.ttf
Binary file not shown.
2 changes: 0 additions & 2 deletions captcha/assets/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

package assets

import "fmt"

type AssetData struct {
// 路径
Path string
Expand Down
1 change: 0 additions & 1 deletion tests/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func getCaptcha() *captcha.Captcha {

capt.SetFont([]string{
getPWD() + "/__example/resources/fonts/fzshengsksjw_cu.ttf",
getPWD() + "/__example/resources/fonts/fzssksxl.ttf",
getPWD() + "/__example/resources/fonts/hyrunyuan.ttf",
})

Expand Down

0 comments on commit 108a642

Please sign in to comment.