修复验证码不显示问题

This commit is contained in:
翟帅干
2016-05-12 17:19:22 +08:00
parent 6ab79cc547
commit 988d165aae
2 changed files with 2 additions and 3 deletions

View File

@@ -12,9 +12,8 @@
namespace think\captcha; namespace think\captcha;
use think\Config; use think\Config;
use think\Controller;
class CaptchaController extends Controller class CaptchaController
{ {
public function index($id = "") public function index($id = "")
{ {

View File

@@ -35,7 +35,7 @@ function captcha($id = "", $config = [])
*/ */
function captcha_src($id = "") function captcha_src($id = "")
{ {
return \think\Url::build('/captcha' . $id ? "/{$id}" : ''); return \think\Url::build('/captcha' . ($id ? "/{$id}" : ''));
} }