32 lines
585 B
PHP
Executable File
32 lines
585 B
PHP
Executable File
<?php
|
|
|
|
namespace app\usmobile\controller;
|
|
|
|
use think\Lang;
|
|
use think\Loader;
|
|
use think\Config;
|
|
use app\common\controller\BaseController;
|
|
|
|
class Authcode extends BaseController {
|
|
|
|
public function index($id = "") {
|
|
$verify = new \verify\Verify((array) Config::get('captcha'));
|
|
return $verify->entry($id);
|
|
}
|
|
|
|
/**
|
|
* 验证码
|
|
*/
|
|
public function check($code, $id = '') {
|
|
return $this->verify_check($code, $id);
|
|
}
|
|
|
|
/**
|
|
* 验证码
|
|
*/
|
|
public function verify($id = '') {
|
|
return $this->verify_build($id);
|
|
}
|
|
|
|
}
|