捕梦者基础框架API接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
769 B

<?php
declare (strict_types=1);
namespace app\index\controller;
use apanly\BrowserDetector\Browser;
use apanly\BrowserDetector\Device;
use apanly\BrowserDetector\Os;
use app\index\model\User;
use think\Exception;
class Index
{
public function hello(User $user)
{
exit('a');
echo 'a';
echo 'b';
echo 'c';
echo 'd';
echo 'e';
throw new \app\exception\HttpException(401, '', 19999);
// halt($user->find(7));
}
public function index(){
$browser = new Browser(); //浏览器
$os = new Os(); //系统
$device = new Device(); //设备型号
dump($browser->getName(),$browser->getVersion(),$os->getName(),$device->getName());
echo "hello";
}
}