@@ -89,6 +89,8 @@ namespace BPASmartClient.ScreenLib | |||||
} | } | ||||
} | } | ||||
Main.GetInstance.StartServer(); | |||||
#region 不需要代码 | #region 不需要代码 | ||||
//foreach (System.Windows.Forms.Screen scr in System.Windows.Forms.Screen.AllScreens) | //foreach (System.Windows.Forms.Screen scr in System.Windows.Forms.Screen.AllScreens) | ||||
//{ | //{ | ||||
@@ -7,6 +7,7 @@ using Newtonsoft.Json; | |||||
using System; | using System; | ||||
using System.Collections.Concurrent; | using System.Collections.Concurrent; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Diagnostics; | |||||
using System.Drawing; | using System.Drawing; | ||||
using System.IO; | using System.IO; | ||||
using System.Linq; | using System.Linq; | ||||
@@ -161,6 +162,25 @@ namespace BPASmartClient.ScreenLib | |||||
MessageLog.GetInstance.ShowEx($"{Name}:MQTT或者Redis启动时,连接失败,原因:{ex.Message}"); | MessageLog.GetInstance.ShowEx($"{Name}:MQTT或者Redis启动时,连接失败,原因:{ex.Message}"); | ||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// | |||||
/// </summary> | |||||
public void StartServer() | |||||
{ | |||||
try | |||||
{ | |||||
string path = System.Configuration.ConfigurationManager.AppSettings["StartServer"].ToString(); | |||||
if (System.IO.File.Exists(path)) | |||||
{ | |||||
Process.Start(path); | |||||
} | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 停止服务 | /// 停止服务 | ||||
/// </summary> | /// </summary> | ||||
@@ -8,7 +8,8 @@ | |||||
<add key="GgAdder" value="https://stream7.iqilu.com/10339/upload_transcode/202002/18/20200218114723HDu3hhxqIT.mp4"/> | <add key="GgAdder" value="https://stream7.iqilu.com/10339/upload_transcode/202002/18/20200218114723HDu3hhxqIT.mp4"/> | ||||
<add key="SaasRoute" value="https://witt.black-pa.com/kitchen/api/StoreHelper/GeBasisGateList?StoreId=0c32b2e2-0dc9-4941-b73d-3dc91f7268ab"/> | <add key="SaasRoute" value="https://witt.black-pa.com/kitchen/api/StoreHelper/GeBasisGateList?StoreId=0c32b2e2-0dc9-4941-b73d-3dc91f7268ab"/> | ||||
<!--显示窗体:0 广告 1 地球--> | <!--显示窗体:0 广告 1 地球--> | ||||
<add key="ShowForm" value="0"/> | |||||
<add key="ShowForm" value="1"/> | |||||
<add key="StartServer" value="D:\fengyoufu\代码\Code\C#项目\收银系统\Pos\bin\Debug\net6.0-windows\黑菠萝收银系统.exe"/> | |||||
<!--<add key="一号屏" value="0"/> | <!--<add key="一号屏" value="0"/> | ||||
<add key="二号屏" value="1"/> | <add key="二号屏" value="1"/> | ||||
<add key="三号屏" value="2"/>--> | <add key="三号屏" value="2"/>--> | ||||