perf: 临时帐号别名

This commit is contained in:
kuaifan
2024-04-08 16:53:24 +08:00
parent 654a90626e
commit a03050bc7b
5 changed files with 28 additions and 5 deletions
+1 -1
View File
@@ -582,7 +582,7 @@ class UsersController extends AbstractController
$tags[] = Doo::translate("系统管理员");
}
if ($userInfo->isTemp()) {
$tags[] = Doo::translate("临时帐号");
$tags[] = User::tempAccountAlias(); // 临时帐号
}
if ($userInfo->userid > 3 && Carbon::parse($userInfo->created_at)->isAfter(Carbon::now()->subDays(30))) {
$tags[] = Doo::translate("新帐号");