@@ -8,7 +8,7 @@ public class AppManager
88 {
99 private AppManager ( ) { }
1010
11- public const string Version = "5.0 " ;
11+ public const string Version = "5.1 " ;
1212
1313 public static string GetFullVersion ( )
1414 {
@@ -608,6 +608,7 @@ public class LeftMenu
608608 public const string IdAccounts = "Accounts" ;
609609
610610 public const string IdFunction = "Function" ;
611+ public const string IdConfiguration = "Configuration" ;
611612
612613 public class Function
613614 {
@@ -799,29 +800,17 @@ private WebSite() { }
799800
800801 public static List < string > GetAppIdList ( )
801802 {
802- return new List < string > { Cms . AppId , Wcm . AppId } ;
803+ return new List < string > { Cms . AppId , Wcm . AppId , WeiXin . AppId } ;
803804 }
804805
805- public static string GetAppName ( string appId , bool isFullName )
806+ public static bool IsWcm ( )
806807 {
807- var retval = string . Empty ;
808- if ( StringUtils . EqualsIgnoreCase ( appId , Cms . AppId ) )
809- {
810- retval = "SiteServer CMS" ;
811- if ( isFullName ) retval += " 内容管理系统" ;
812- }
813- else if ( StringUtils . EqualsIgnoreCase ( appId , Wcm . AppId ) )
814- {
815- retval = "SiteServer WCM" ;
816- if ( isFullName ) retval += " 内容协作平台" ;
817- }
818-
819- return retval ;
808+ return FileUtils . IsFileExists ( PathUtils . GetMenusPath ( Wcm . AppId , "Management.config" ) ) ;
820809 }
821810
822- public static bool IsWcm ( )
811+ public static bool IsWeiXin ( )
823812 {
824- return FileUtils . IsFileExists ( PathUtils . GetMenusPath ( Wcm . AppId , "Management.config" ) ) ;
813+ return FileUtils . IsFileExists ( PathUtils . GetMenusPath ( WeiXin . AppId , "Management.config" ) ) ;
825814 }
826815
827816 public static void Upgrade ( string version , out string errorMessage )
0 commit comments