40 lines
542 B
PHP
40 lines
542 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: dingran
|
|
* Date: 2019/3/12
|
|
* Time: 下午5:42
|
|
*/
|
|
|
|
namespace app\common\middleware;
|
|
|
|
|
|
use app\common\traits\JsonTrait;
|
|
use app\common\facades\Setting;
|
|
|
|
class Check
|
|
{
|
|
use JsonTrait;
|
|
|
|
public function handle($request, \Closure $next)
|
|
{
|
|
$this->checkRegister();
|
|
|
|
$this->checkStaticFile();
|
|
|
|
return $next($request);
|
|
}
|
|
|
|
/**
|
|
* 检测是否注册
|
|
*/
|
|
private function checkRegister()
|
|
{
|
|
|
|
}
|
|
|
|
private function checkStaticFile()
|
|
{
|
|
|
|
}
|
|
} |