修正路由定义

This commit is contained in:
yunwuxin
2016-06-12 10:42:11 +08:00
parent f7670c78cd
commit 02eb4a2667

View File

@@ -9,7 +9,7 @@
// | 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 = "") {
return captcha_check($value, $id, (array)\think\Config::get('captcha'));