mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
exam fixed after assign
This commit is contained in:
@@ -779,6 +779,15 @@ function get_user_id()
|
||||
return auth()->user()->id ?? 0;
|
||||
}
|
||||
|
||||
function get_pure_username()
|
||||
{
|
||||
if (IN_NEXUS) {
|
||||
global $CURUSER;
|
||||
return $CURUSER["username"] ?? "";
|
||||
}
|
||||
return auth()->user()->username ?? "";
|
||||
}
|
||||
|
||||
function nexus()
|
||||
{
|
||||
return \Nexus\Nexus::instance();
|
||||
|
||||
Reference in New Issue
Block a user