宝体数据调用接口
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.
 
 
 
 
 
 

20 lines
381 B

<?php
// 应用公共函数库文件
use app\store\service\Auth;
/**
* 验证指定url是否有访问权限
* @param string|array $url
* @param bool $strict 严格模式
* @return bool
*/
function checkPrivilege($url, $strict = true)
{
try {
return Auth::getInstance()->checkPrivilege($url, $strict);
} catch (\Exception $e) {
return false;
}
}