feat: 解决登陆缓存丢失问题

This commit is contained in:
chenping
2026-04-23 15:57:45 +08:00
parent e3d3593fdd
commit 43d21eb55f
2 changed files with 5 additions and 2 deletions

View File

@@ -87,5 +87,9 @@ class desktop_task{
$deploy_info = base_setup_config::deploy_info(); $deploy_info = base_setup_config::deploy_info();
$logo = substr($deploy_info['product_name'],strlen('商派ONex ')); $logo = substr($deploy_info['product_name'],strlen('商派ONex '));
app::get('desktop')->setConf('logo',$logo); app::get('desktop')->setConf('logo',$logo);
if (!pam_account::get_account_type('desktop')){
pam_account::register_account_type('desktop','shopadmin','后台管理系统');
}
} }
} }

View File

@@ -93,8 +93,7 @@ class pam_account{
{ {
$aType = app::get('pam')->getConf('account_type'); $aType = app::get('pam')->getConf('account_type');
//todo //todo
return $aType[$app_id]['type']; return is_array($aType[$app_id]) ? $aType[$app_id]['type'] : false;
//return 'member';
}//End Function }//End Function
/** /**