Skip to content

Commit

Permalink
解决验证码不显示的错误。
Browse files Browse the repository at this point in the history
  • Loading branch information
startbbs committed Apr 8, 2018
1 parent c694e4e commit 165bcd0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
22 changes: 22 additions & 0 deletions think
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env php
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------

namespace think;

// 加载基础文件
require __DIR__ . '/thinkphp/base.php';

// 应用初始化
Container::get('app')->path(__DIR__ . '/application/')->initialize();

// 控制台初始化
Console::init();
4 changes: 2 additions & 2 deletions vendor/topthink/think-captcha/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# think-captcha
thinkphp5.1 验证码类库
thinkphp5 验证码类库

## 安装
> composer require topthink/think-captcha
Expand All @@ -22,7 +22,7 @@ thinkphp5.1 验证码类库
使用TP5的内置验证功能即可
~~~
$this->validate($data,[
'captcha|验证码'=>'require|captcha'
'captcha|验证码'=>'required|captcha'
]);
~~~
或者手动验证
Expand Down
4 changes: 1 addition & 3 deletions vendor/topthink/think-captcha/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
}
],
"license": "Apache-2.0",
"require": {
"topthink/framework": "5.1.*"
},
"require": {},
"autoload": {
"psr-4": {
"think\\captcha\\": "src/"
Expand Down

0 comments on commit 165bcd0

Please sign in to comment.