28 lines
621 B
PHP
28 lines
621 B
PHP
<?php
|
|
|
|
namespace app\czg\controller;
|
|
|
|
use app\api\model\Msg;
|
|
use app\api\model\TbUser;
|
|
use app\common\model\SysUser;
|
|
use think\facade\Db;
|
|
use think\Request;
|
|
use Throwable;
|
|
use ba\Captcha;
|
|
use ba\ClickCaptcha;
|
|
use think\facade\Config;
|
|
use app\common\facade\Token;
|
|
use app\common\controller\Frontend;
|
|
use app\api\validate\User as UserValidate;
|
|
|
|
class LoginController extends Frontend
|
|
{
|
|
protected array $noNeedLogin = ['*'];
|
|
|
|
// 发送验证码
|
|
public function sendMsg()
|
|
{
|
|
$get = $this->request->route->param();
|
|
return $this->ApiDataReturn(Msg::sendMsg($get['phone'], $get['event']));
|
|
}
|
|
} |