fastadmin 简单集成 阿里云短信
# application/common.php文件
返回方法
$response = Response::create('请求无权访问', 'html', 403);
throw new HttpResponseException($response);
# 验证手机号码方法:
if (!$mobile || !\think\Validate::regex($mobile, "^1\d{10}$")) {
$this->error(__('手机号不正确'));
}