Skip to content

Commit

Permalink
Merge pull request #1 from zhaishuaigan/master
Browse files Browse the repository at this point in the history
修复验证码不显示问题
  • Loading branch information
yunwuxin committed May 12, 2016
2 parents 6ab79cc + 988d165 commit e1a0260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/CaptchaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
namespace think\captcha;

use think\Config;
use think\Controller;

class CaptchaController extends Controller
class CaptchaController
{
public function index($id = "")
{
Expand Down
2 changes: 1 addition & 1 deletion src/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}" : ''));
}


Expand Down

0 comments on commit e1a0260

Please sign in to comment.