<?php
namespace app\admin\controller;
// use think\captcha\Captcha;
use app\admin\controller\Command;
use think\Controller;
class Login extends Command
{
public function index()
{
// echo 1;
return $this->fetch("Login/login");
}
public function login()
{
$verify = input("post.verify");
if(!captcha_check($verify)){
echo "错误啊";
}else{
echo "正确啊";
}
}
}
最佳答案