From 43d21eb55f79093e610227d82d4ddf7fd40bd2ec Mon Sep 17 00:00:00 2001 From: chenping Date: Thu, 23 Apr 2026 15:57:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E7=99=BB=E9=99=86?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/desktop/task.php | 4 ++++ app/pam/lib/account.php | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 /**