Skip to content

Commit

Permalink
修正路由定义
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Jun 12, 2016
1 parent f7670c7 commit 02eb4a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 02eb4a2

Please sign in to comment.