mirror of
https://gitee.com/fastadminnet/think-captcha.git
synced 2026-07-07 00:12:48 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1a0260861 | ||
|
|
988d165aae |
@@ -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 = "")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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}" : ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user