feat(captcha): The captcha generates uppercase letter images, but it can only recognize them as lowercase (#319)

This commit is contained in:
lejianwen
2025-07-14 20:36:33 +08:00
parent 1d2d1d4c98
commit e2ec387ba2

View File

@@ -5,7 +5,8 @@ import (
"time"
)
var capdString = base64Captcha.NewDriverString(50, 150, 0, 5, 4, "123456789abcdefghijklmnopqrstuvwxyz", nil, nil, nil)
var capdString = base64Captcha.NewDriverString(50, 150, 0, 5, 4, "123456789abcdefghijklmnopqrstuvwxyz", nil, nil,
[]string{"3Dumb.ttf", "ApothecaryFont.ttf", "Comismsh.ttf", "Flim-Flam.ttf", "RitaSmith.ttf", "wqy-microhei.ttc"})
var capdMath = base64Captcha.NewDriverMath(50, 150, 3, 10, nil, nil, nil)