'commit'
continuous-integration/drone/push Build is passing Details

master
黄海 4 years ago
parent 4b21f5c666
commit a9788994d3

@ -5,11 +5,8 @@
</component>
<component name="ChangeListManager">
<list default="true" id="19c8c37d-a056-451c-a29d-fb612b9a3e2f" name="Default Changelist" comment="commit">
<change beforePath="$PROJECT_DIR$/Tools/Distribute.go" beforeDir="false" afterPath="$PROJECT_DIR$/Tools/Distribute.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/WinBuild/Distribute.exe" beforeDir="false" afterPath="$PROJECT_DIR$/WinBuild/Distribute.exe" afterDir="false" />
<change beforePath="$PROJECT_DIR$/build/Config/logo.txt" beforeDir="false" afterPath="$PROJECT_DIR$/build/Config/logo.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/build/dsSzxy" beforeDir="false" afterPath="$PROJECT_DIR$/build/dsSzxy" afterDir="false" />
<change beforePath="$PROJECT_DIR$/一键发布.cmd" beforeDir="false" afterPath="$PROJECT_DIR$/一键发布.cmd" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Business/CaptchaRelate/CaptchaController/CaptchaController.go" beforeDir="false" afterPath="$PROJECT_DIR$/Business/CaptchaRelate/CaptchaController/CaptchaController.go" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

@ -67,22 +67,38 @@ func CaptMake() (string, string) {
//https://captcha.mojotv.cn/
//四则运算
driver := &base64Captcha.DriverMath{
Height: 60,
Width: 240,
NoiseCount: 0,
//driver := &base64Captcha.DriverMath{
// Height: 60,
// Width: 240,
// NoiseCount: 0,
// BgColor: &color.RGBA{
// R: 52,
// G: 56,
// B: 98,
// A: 58,
// },
// Fonts: []string{"wqy-microhei.ttc"},
//}
//driver.ConvertFonts()
//中文
driver := &base64Captcha.DriverChinese{
Height: 50,
Width: 300,
NoiseCount: 0,
ShowLineOptions: 1,
Length: 2,
BgColor: &color.RGBA{
R: 52,
G: 56,
B: 98,
A: 58,
},
Fonts: []string{"wqy-microhei.ttc"},
Source: "东师理想,大数据,超融合,智慧校园,数字校园,黄海,吴缤,超人气,抗疫情,努力,加油,长春",
Fonts: []string{"wqy-microhei.ttc"},
}
driver.ConvertFonts()
//中文
// 生成base64图片
c, err := cache.New(cache.Cfg{
Driver: "redis",

Loading…
Cancel
Save