Files
webman_duanju/app/admin/controller/Login.php
2025-08-14 17:19:26 +08:00

28 lines
618 B
PHP

<?php
namespace app\admin\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 Login extends Frontend
{
protected array $noNeedLogin = ['*'];
// 发送验证码
public function sendMsg($phone, $event)
{
$get = $this->request->get();
return $this->ApiDataReturn(Msg::sendMsg($get['phone'], $get['event']));
}
}