示例#1
0
文件: start.php 项目: lev1976g/core
/**
 * @param null $key
 * @param null $default
 * @param null $userGroupId
 * @return \Api\User\Object|\Api\User\Object[]
 * @throws Exception
 */
function user($key = null, $default = null, $userGroupId = null)
{
    if ($key === null) {
        return (new \Api\User())->get(\Phpfox::getUserId());
    }
    $Setting = new \Core\User\Setting();
    return $Setting->get($key, $default, $userGroupId);
}