abstract:打開Composer中文網(wǎng) 找到thinkphp的擴(kuò)展包列表-搜索think-captcha 點(diǎn)擊第一個(gè)topthink/think-captcha 復(fù)制安裝方法composer require topthink/think-captcha 在think根目錄下執(zhí)行<?phpreturn [ //驗(yàn)證碼的字符集 'codeSet' =>
打開Composer中文網(wǎng) 找到thinkphp的擴(kuò)展包列表-搜索think-captcha 點(diǎn)擊第一個(gè)topthink/think-captcha 復(fù)制安裝方法composer require topthink/think-captcha 在think根目錄下執(zhí)行
<?php
return [
//驗(yàn)證碼的字符集
'codeSet' => '123456789abcdefghigklmnopqrstuvwxyz',
//字體大小
'fontSize' => 18,
//是否添加混淆曲線
'useCurve' => false;
//驗(yàn)證碼圖片寬度/高度
'imagW' => 150,
'imagH' => 35,
//驗(yàn)證碼的位數(shù)
'length' => 4,
//驗(yàn)證成功后是否重置
'reset' => true,
];
Correcting teacher:查無此人Correction time:2019-06-22 17:03:53
Teacher's summary:完成的不錯(cuò)。composer還可以安裝更多軟件,可以多了解。繼續(xù)加油。