@@ -54,7 +54,8 @@ public function index (Request $request)
5454 if (request ()->wantsJson ()) {
5555 $ limit = $ request ->input ('limit ' , 15 );
5656 QueryWhere::defaultOrderBy ('users.id ' , 'DESC ' )->setRequest ($ request ->all ());
57- $ M = $ this ->repository ->makeModel ()->select ('user_admins.* ' , 'users.name ' , 'user_infos.real_name ' , 'user_infos.gender ' , 'user_infos.telephone ' , 'user_infos.address ' );
57+ $ M = $ this ->repository ->makeModel ()->select ('user_admins.* ' , 'users.name ' ,'users.login_count ' ,'users.last_login_at ' ,
58+ 'user_infos.real_name ' , 'user_infos.gender ' , 'user_infos.telephone ' , 'user_infos.address ' );
5859 $ M ->join ('user_admins ' , 'users.id ' , '= ' , 'user_admins.user_id ' );
5960 $ M ->leftJoin ('user_infos ' , 'user_infos.user_id ' , '= ' , 'users.id ' );
6061 QueryWhere::eq ($ M , 'user_admins.status ' );
@@ -248,6 +249,11 @@ public function update (Request $request, UserAdmin $userAdmin)
248249 if ($ isSuper && $ user ->id != get_login_user_id ()) {
249250 throw new BusinessException ('无法修改超级管理员信息,需管理员自行修改 ' );
250251 }
252+ //【可删除】演示站点测试专用-start
253+ if ($ isSuper && config ('gui.deny_edit_super_admin ' )) {
254+ throw new BusinessException ('演示站点无法修改超级管理员信息 ' );
255+ }
256+ //【可删除】演示站点测试专用-end
251257
252258 if (array_get ($ input , 'password ' )) {
253259 $ input ['password ' ] = Hash::make ($ input ['password ' ]);
0 commit comments