exam fixed after assign

This commit is contained in:
xiaomlove
2023-11-14 02:13:21 +08:00
parent c28fd3b086
commit 4907b2f7ac
15 changed files with 153 additions and 11 deletions

View File

@@ -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();