图像“http:// www.aaa.com/index.php?m=Home&c=Public&a=captcha”图像因其本身有错无法显示
代码如下:
<?php
namespace Home\Controller;
use Think\Controller;
class PublicController extends Controller {
public function captcha() {
$config = array(
'fontSize' => I('s', 16, 'intval'), // 验证码字体大小
'length' => 4, // 验证码位数
'useNoise' => false, // 关闭验证码杂点
'expire' => 180, // 有效期
'imageW' => I('w', 50, 'intval'), // 宽度
'imageH' => I('h', 20, 'intval') // 高度
);
ob_clean();
$Verify = new \Think\Verify($config);
$Verify->entry();
}
public function login() {
$this->display(THEMES_PATH . "Default/Public/login.html");
}
}
神马原因。。。。

最佳答案
