|
@@ -35,6 +35,7 @@ namespace WingCloudServer
|
|
|
|
|
|
//启动 工具
|
|
|
var _dependencies = ConfigurationManager.GetParammeter<StringParameter>("Dependencies", "Apps").Value;
|
|
|
+ var isOpenSmsService = ConfigurationManager.GetParammeter<BoolParameter>("General", "IsOpenSmsService").Value;
|
|
|
if (!string.IsNullOrEmpty(_dependencies))
|
|
|
{
|
|
|
var dependenciesApps = _dependencies.Split(',');
|
|
@@ -42,21 +43,25 @@ namespace WingCloudServer
|
|
|
{
|
|
|
if (!string.IsNullOrEmpty(item))
|
|
|
{
|
|
|
- var appItems= item.Split('|');
|
|
|
- var appItem="";//application
|
|
|
- var paramsValue="";
|
|
|
- if(appItems.Length>0)
|
|
|
- {
|
|
|
- appItem=appItems[0];
|
|
|
- for (int i = 1; i < appItems.Length; i++)
|
|
|
- {
|
|
|
- paramsValue +=" "+appItems[i];
|
|
|
- }
|
|
|
- }
|
|
|
- if(string.IsNullOrEmpty(appItem))
|
|
|
- {
|
|
|
- throw new Exception( " load appsetting:Dependencies.Apps is null");
|
|
|
- }
|
|
|
+ if (item.StartsWith("startsms") && isOpenSmsService == false)
|
|
|
+ {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ var appItems= item.Split('|');
|
|
|
+ var appItem="";//application
|
|
|
+ var paramsValue="";
|
|
|
+ if(appItems.Length>0)
|
|
|
+ {
|
|
|
+ appItem=appItems[0];
|
|
|
+ for (int i = 1; i < appItems.Length; i++)
|
|
|
+ {
|
|
|
+ paramsValue +=" "+appItems[i];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(string.IsNullOrEmpty(appItem))
|
|
|
+ {
|
|
|
+ throw new Exception( " load appsetting:Dependencies.Apps is null");
|
|
|
+ }
|
|
|
var directory= Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"Packages");
|
|
|
var appPath=Path.Combine(directory,appItem);
|
|
|
if(!File.Exists(appPath))
|
|
@@ -65,8 +70,7 @@ namespace WingCloudServer
|
|
|
appPath= files.FirstOrDefault(v=>v.Contains(appItem));
|
|
|
}
|
|
|
ProcessStarter.StartProcess(appPath,paramsValue);
|
|
|
- _dependencieNames.Add(appItem);
|
|
|
-
|
|
|
+ _dependencieNames.Add(appItem);
|
|
|
}
|
|
|
}
|
|
|
}
|