验证码修改

This commit is contained in:
Dev
2026-10-16 14:34:59 +08:00
parent 30460cb925
commit dafb0c96c0
2 changed files with 3 additions and 3 deletions
@@ -118,7 +118,7 @@
<div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
<input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length})" autocomplete="off"/>
<span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
<img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
<img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="150" height="32" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
</span>
</div>
{/if}
+2 -2
View File
@@ -246,9 +246,9 @@ return [
// 验证码图片高度
'imageH' => 40,
// 验证码图片宽度
'imageW' => 130,
'imageW' => 180,
// 验证码位数
'length' => 2,
'length' => 4,
// 验证成功后是否重置
'reset' => true
],