
修改文件 验证码文件位置 include\validateimg.php (推荐学习:织梦cms)
找到
for($i=0;$i<p><strong>改成 </strong><br></p><pre class="brush:html;toolbar:false">for($i=0;$i<p>这个函数是产生随机字符,看见里面的数字没有,它就是要产生字符键盘码的范围,原来的是mt_rand(65,90),这个65到90是大写字母A到Z的键盘码。 </p><p>现在修改为(48,57) 表示0到9的键盘码:mt_rand(48,57)。 </p><div class="aritcle_card flexRow artxards"> <div class="artcardd flexRow"> <a class="aritcle_card_img" rel="nofollow" href="/ai/1819" title="Playground AI"><img src="https://img.php.cn/upload/ai_manual/000/969/633/68b6cb801fa31913.png" alt="Playground AI" onerror="this.onerror='';this.src='/static/lhimages/moren/morentu.png'" ></a> <div class="aritcle_card_info flexColumn"> <a rel="nofollow" href="/ai/1819" title="Playground AI" class="overflowclass">Playground AI</a> <p class="overflowclass">一款集AI图像生成和图片编辑于一体的视觉创作工具,帮助用户制作、修改和组合图片,适合多种创意设计任务。</p> </div> <a rel="nofollow" href="/ai/1819" title="Playground AI" class="aritcle_card_btn flexRow flexcenter"><b></b><span>下载</span> </a> </div> </div><p>按照这个理论,估计能产生中文吧。 </p><p><strong>还有这个文件里面的 </strong></p><pre class="brush:html;toolbar:false">$bgcolor = ImageColorAllocate($im, 248,212,20); $black = ImageColorAllocate($im, 0,0,0);
是设定生成图片的背景颜色和文字颜色的。三个数字表示 颜色的 红,绿,蓝色值。范围为0到255,
比如
0,0,0 表示 黑色, 255,0,0 表示纯红, 0,255,0 表示纯绿, 0,0,255 表示纯蓝。










