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

master
黄海 4 years ago
parent 3323767dad
commit 97b319f736

@ -5,7 +5,6 @@
</component>
<component name="ChangeListManager">
<list default="true" id="19c8c37d-a056-451c-a29d-fb612b9a3e2f" name="Default Changelist" comment="commit">
<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" />

@ -57,7 +57,13 @@ func verifyCaptcha(c *gin.Context) {
// CaptMake 生成验证码
func CaptMake() (string, string) {
// 生成默认数字
driver := base64Captcha.DefaultDriverDigit
driver := &base64Captcha.DriverDigit{
Height: 100,
Width: 200,
Length: 5,
MaxSkew: 1,
DotCount: 1,
}
// 生成base64图片
c := base64Captcha.NewCaptcha(driver, store)
// 获取

Loading…
Cancel
Save