Merge pull request #1 from zhaishuaigan/master

修复验证码不显示问题
This commit is contained in:
yunwuxin
2016-05-12 05:02:08 -05:00
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}" : ''));
} }