diff --git a/app/desktop/task.php b/app/desktop/task.php index ee2bd7b7..f1517403 100644 --- a/app/desktop/task.php +++ b/app/desktop/task.php @@ -87,5 +87,9 @@ class desktop_task{ $deploy_info = base_setup_config::deploy_info(); $logo = substr($deploy_info['product_name'],strlen('商派ONex ')); app::get('desktop')->setConf('logo',$logo); + + if (!pam_account::get_account_type('desktop')){ + pam_account::register_account_type('desktop','shopadmin','后台管理系统'); + } } } diff --git a/app/pam/lib/account.php b/app/pam/lib/account.php index 7779fa26..6b8c5209 100644 --- a/app/pam/lib/account.php +++ b/app/pam/lib/account.php @@ -93,8 +93,7 @@ class pam_account{ { $aType = app::get('pam')->getConf('account_type'); //todo - return $aType[$app_id]['type']; - //return 'member'; + return is_array($aType[$app_id]) ? $aType[$app_id]['type'] : false; }//End Function /**