2 Commits

Author SHA1 Message Date
yunwuxin
e1a0260861 Merge pull request #1 from zhaishuaigan/master
修复验证码不显示问题
2016-05-12 05:02:08 -05:00
翟帅干
988d165aae 修复验证码不显示问题 2016-05-12 17:19:22 +08:00
2 changed files with 2 additions and 3 deletions

View File

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

View File

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