mirror of
https://gitee.com/fastadminnet/think-captcha.git
synced 2026-07-01 14:02:47 +08:00
修正路由定义
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
// | Author: yunwuxin <448901948@qq.com>
|
// | Author: yunwuxin <448901948@qq.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
\think\Route::get('captcha/[:id]', ["\\think\\captcha\\CaptchaController", 'index']);
|
\think\Route::get('captcha/[:id]', "\\think\\captcha\\CaptchaController@index");
|
||||||
|
|
||||||
\think\Validate::extend('captcha', function ($value, $id = "") {
|
\think\Validate::extend('captcha', function ($value, $id = "") {
|
||||||
return captcha_check($value, $id, (array)\think\Config::get('captcha'));
|
return captcha_check($value, $id, (array)\think\Config::get('captcha'));
|
||||||
|
|||||||
Reference in New Issue
Block a user