新系统日志模块

This commit is contained in:
兔姬桑
2021-12-08 08:49:06 +08:00
parent bf517cb30e
commit efa0579de7
22 changed files with 1399 additions and 573 deletions

View File

@@ -525,7 +525,7 @@ class UserController extends Controller
public function switchToAdmin(): JsonResponse
{
if (! Session::has('admin')) {
return Response::json(['status' => 'fail', 'message' => trans('error.unauthorized')]);
return Response::json(['status' => 'fail', 'message' => trans('errors.unauthorized')]);
}
// 管理员信息重新写入user