星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

App.cs 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. using ComeCapture;
  2. using Common.system;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.IO;
  7. using System.Reflection;
  8. using System.Security.Principal;
  9. using System.Threading;
  10. using System.Windows;
  11. using System.Windows.Threading;
  12. using TStudyDigitalPen.HID;
  13. using XHWK.Model;
  14. using XHWK.WKTool.Helpers;
  15. namespace XHWK.WKTool
  16. {
  17. public partial class APP : Application
  18. {
  19. #region 全局变量
  20. /// <summary>
  21. /// 是否为测试版
  22. /// </summary>
  23. public static bool isDebug = FileToolsCommon.GetConfigValue("IsDebug") != "0";
  24. /// <summary>
  25. /// 是否输出测试记录日志
  26. /// </summary>
  27. public static bool IsOutputInfoLog = FileToolsCommon.GetConfigValue("IsOutputInfoLog") != "0";
  28. /// <summary>
  29. /// 是否隐藏录屏工具栏
  30. /// </summary>
  31. public static bool IsHideSRTool= FileToolsCommon.GetConfigValue("IsHideSRTool") != "0";
  32. /// <summary>
  33. /// 接口地址
  34. /// </summary>
  35. public static string apiUrl = isDebug ? "http://schoolapitest.xhkjedu.com" : FileToolsCommon.GetConfigValue("APIRequestAddress");
  36. /// <summary>
  37. /// 图片地址
  38. /// </summary>
  39. public static string uploadUrl = isDebug ? "http://schoolfiletest.xhkjedu.com/" : FileToolsCommon.GetConfigValue("FileRequestAddress");
  40. /// <summary>
  41. /// 展示文件
  42. /// </summary>
  43. public static string showImageUrl = isDebug ? "http://schoolfiletest.xhkjedu.com/static/" : FileToolsCommon.GetConfigValue("SchoolfileRequestAddress") + "/static/";
  44. /// <summary>
  45. /// 认证接口地址
  46. /// </summary>
  47. public static string certapiUrl = isDebug ? "http://certapitest.xhkjedu.com" : FileToolsCommon.GetConfigValue("CertapiRequestAddress");
  48. /// <summary>
  49. /// 数据存放目录
  50. /// </summary>
  51. public static string dataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\XHMicroLesson\\";
  52. /// <summary>
  53. /// 后台线程帮助类
  54. /// </summary>
  55. public static BackgroundWorkerHelper BackgroundWorkerHelper => BackgroundWorkerHelper.GetInstance();
  56. /// <summary>
  57. /// 签名
  58. /// </summary>
  59. public static string Signature = "";
  60. public static string secretKey = "nanhuakaizhangjianwangni";
  61. /// <summary>
  62. /// 用户信息
  63. /// </summary>
  64. public static Model_UserInfo UserInfo = null;
  65. /// <summary>
  66. /// 接口返回消息
  67. /// </summary>
  68. public static string ServerMsg = string.Empty;
  69. /// <summary>
  70. /// 用户微课列表模型
  71. /// </summary>
  72. public static List<Model_WKData> WKDataList = null;
  73. /// <summary>
  74. /// 微课模型
  75. /// </summary>
  76. public static Model_WKData WKData = null;
  77. /// <summary>
  78. /// 微课视频列表
  79. /// </summary>
  80. public static List<Model_Video> VideoList = null;
  81. /// <summary>
  82. /// 画板模型
  83. /// </summary>
  84. public static List<Model_DrawData> PageDrawList = null;
  85. /// <summary>
  86. /// 录屏工具
  87. /// </summary>
  88. public static FFMpeg FFmpeg = new FFMpeg();
  89. /// <summary>
  90. /// 登陆状态 false 未登录 true已登陆
  91. /// </summary>
  92. public static bool IsLoginType = false;
  93. public static readonly Model_Page pageData = new Model.Model_Page();
  94. /// <summary>
  95. /// 防止图片地址重复
  96. /// </summary>
  97. public static long num = 9999;
  98. /// <summary>
  99. /// 导入图片路径
  100. /// </summary>
  101. public static string[] Paths = new string[] { };
  102. /// <summary>
  103. /// 截图图片路径
  104. /// </summary>
  105. public static string[] JPaths = new string[999];
  106. public static string ImgPath = string.Empty;
  107. /// <summary>
  108. /// 页码IP
  109. /// </summary>
  110. public static string[] OutPut = new string[] { };
  111. public static string CameraPosition = string.Empty;
  112. /// <summary>
  113. /// 数据存放目录
  114. /// </summary>
  115. public static string DataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\XHMicroLesson\\";
  116. /// <summary>
  117. /// 教材列表
  118. /// </summary>
  119. public static List<Model_TsubjectbookList> TsubjectbookList = null;
  120. /// <summary>
  121. /// 章节列表
  122. /// </summary>
  123. public static List<Model_DirectorList> DirectorList = null;
  124. /// <summary>
  125. /// 上传个人空间 入参
  126. /// </summary>
  127. public static Model_ResourceAddTwo ResourceAddTwo = null;
  128. /// <summary>
  129. /// 是否正在
  130. /// </summary>
  131. public static bool IsUpLoad = false;
  132. #region 点阵笔
  133. /// <summary>
  134. /// 点阵笔
  135. /// </summary>
  136. public static DigitalPenHID digitalPen;
  137. /// <summary>
  138. /// 笔序号
  139. /// </summary>
  140. public static string PenSerial;
  141. /// <summary>
  142. /// 笔状态,是否已连接
  143. /// </summary>
  144. public static bool PenStatus = false;
  145. /// <summary>
  146. /// 手写板状态,是否已连接
  147. /// </summary>
  148. public static bool BoardStatus = false;
  149. #endregion
  150. #region 腾千里手写笔
  151. /// <summary>
  152. /// 腾千里手写笔事件
  153. /// </summary>
  154. public static PenEvents TQLPenevents;
  155. /// <summary>
  156. /// 腾千里手写笔是否已连接
  157. /// </summary>
  158. public static bool TQLPenStatus = false;
  159. #endregion
  160. #region 页面
  161. /// <summary>
  162. /// 主页面
  163. /// </summary>
  164. public static XHMicroLessonSystemWindow W_XHMicroLessonSystemWindow = null;
  165. /// <summary>
  166. /// 创建微课页面
  167. /// </summary>
  168. public static CreateAMicroLessonWindow W_CreateAMicroLessonWindow = null;
  169. /// <summary>
  170. /// 开始录像
  171. /// </summary>
  172. public static CountdownWindow W_CountdownWindow = null;
  173. /// <summary>
  174. /// 录像工具栏
  175. /// </summary>
  176. public static ScreenRecordingToolbarWindow W_ScreenRecordingToolbarWindow = null;
  177. /// <summary>
  178. /// 登陆
  179. /// </summary>
  180. public static LoginWindow W_LoginWindow = null;
  181. /// <summary>
  182. /// 截图
  183. /// </summary>
  184. public static JieTuWindow W_JieTuWindow = null;
  185. /// <summary>
  186. /// 批注
  187. /// </summary>
  188. public static PracticeWindow W_PracticeWindow = null;
  189. /// <summary>
  190. /// 我的视频
  191. /// </summary>
  192. public static FileDirectoryWindow fileDirectoryWindow = null;
  193. /// <summary>
  194. /// 打印
  195. /// </summary>
  196. public static PrintWindow W_PrintWindow = null;
  197. /// <summary>
  198. /// 提示窗口
  199. /// </summary>
  200. public static PromptWindow W_PromptWindow = null;
  201. /// <summary>
  202. /// loding页面
  203. /// </summary>
  204. public static LoadDialog myloading;
  205. /// <summary>
  206. /// 上传页面
  207. /// </summary>
  208. public static UploadWindow W_UploadWindow = null;
  209. /// <summary>
  210. /// 最小化工具栏
  211. /// </summary>
  212. public static MinToolbar W_MinToolbar = null;
  213. #endregion
  214. #endregion
  215. [STAThread]
  216. private static void Main()
  217. {
  218. myloading = new LoadDialog();
  219. StopSameProcess();
  220. Killffmpeg();
  221. LatticeFileHelper.RunPrintConfig();
  222. try
  223. {
  224. UserInfo = new Model_UserInfo();
  225. WKDataList = new List<Model_WKData>();
  226. VideoList = new List<Model_Video>();
  227. #region 强制以管理员方式运行 修改人:赵耀 修改时间:2020年9月7日
  228. WindowsIdentity identity = WindowsIdentity.GetCurrent();
  229. WindowsPrincipal principal = new WindowsPrincipal(identity);
  230. //判断当前登录用户是否为管理员
  231. //if (principal.IsInRole(WindowsBuiltInRole.Administrator))
  232. //{
  233. // //如果是管理员,则直接运行
  234. // W_CreateAMicroLessonWindow = new CreateAMicroLessonWindow();
  235. // // 定义Application对象作为整个应用程序入口
  236. // Application app = new Application();
  237. // app.Run(W_CreateAMicroLessonWindow);
  238. // //Application.Run(W_CreateAMicroLessonWindow);
  239. //}
  240. //else
  241. //{
  242. // //创建启动对象
  243. // System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo
  244. // {
  245. // UseShellExecute = true,
  246. // WorkingDirectory = Environment.CurrentDirectory,
  247. // FileName = Assembly.GetExecutingAssembly().Location,
  248. // //设置启动动作,确保以管理员身份运行
  249. // Verb = "runas"
  250. // };
  251. // try
  252. // {
  253. // System.Diagnostics.Process.Start(startInfo);
  254. // }
  255. // catch
  256. // {
  257. // return;
  258. // }
  259. // //退出
  260. // //Current.Shutdown();
  261. // Environment.Exit(0);
  262. //}
  263. #endregion
  264. try
  265. {
  266. if (Directory.Exists(AppDomain.CurrentDomain.BaseDirectory + "temp"))//清除临时文件
  267. {
  268. Directory.Delete(AppDomain.CurrentDomain.BaseDirectory + "temp", true);
  269. }
  270. }
  271. catch (Exception)
  272. {
  273. }
  274. //如果本地文件为空,弹出弹窗 输密匙
  275. //本地文件不为空, 解析
  276. if (!File.Exists(APP.dataPath + "signature.txt"))//上次登陆时间为空 或者签名为空 或者上次登陆时间不是今天 都需要输入密匙验证 ,否则只验证本地的签名
  277. {
  278. if (principal.IsInRole(WindowsBuiltInRole.Administrator))
  279. {
  280. //如果是管理员,则直接运行
  281. KeyVerification wins = new KeyVerification();
  282. // 定义Application对象作为整个应用程序入口
  283. Application app = new Application();
  284. app.Run(wins);
  285. }
  286. else
  287. {
  288. //创建启动对象
  289. System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo
  290. {
  291. UseShellExecute = true,
  292. WorkingDirectory = Environment.CurrentDirectory,
  293. FileName = Assembly.GetExecutingAssembly().Location,
  294. //设置启动动作,确保以管理员身份运行
  295. Verb = "runas"
  296. };
  297. try
  298. {
  299. System.Diagnostics.Process.Start(startInfo);
  300. }
  301. catch
  302. {
  303. return;
  304. }
  305. //退出
  306. //Current.Shutdown();
  307. Environment.Exit(0);
  308. }
  309. }
  310. else
  311. {
  312. if (principal.IsInRole(WindowsBuiltInRole.Administrator))
  313. {
  314. ProductVerification wins = new ProductVerification();
  315. Application app = new Application();
  316. app.Run(wins);
  317. }
  318. else
  319. {
  320. //创建启动对象
  321. System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo
  322. {
  323. UseShellExecute = true,
  324. WorkingDirectory = Environment.CurrentDirectory,
  325. FileName = Assembly.GetExecutingAssembly().Location,
  326. //设置启动动作,确保以管理员身份运行
  327. Verb = "runas"
  328. };
  329. try
  330. {
  331. System.Diagnostics.Process.Start(startInfo);
  332. }
  333. catch
  334. {
  335. return;
  336. }
  337. //退出
  338. //Current.Shutdown();
  339. Environment.Exit(0);
  340. }
  341. }
  342. }
  343. catch (Exception ex)
  344. {
  345. string ErrMessage = "【进程】(Main):进程意外关闭。 " + ex.Message;
  346. LogHelper.WriteErrLog(ErrMessage, ex);
  347. }
  348. }
  349. #region 杀死已存在的进程
  350. /// <summary>
  351. /// 结束已运行的程序
  352. /// </summary>
  353. private static void StopSameProcess()
  354. {
  355. Process current = Process.GetCurrentProcess();
  356. Process[] processList = Process.GetProcesses();
  357. foreach (Process process in processList)
  358. {
  359. if (process.ProcessName.ToUpper() == "星火微课")
  360. {
  361. if (process.Id != current.Id) //忽略当前进程
  362. {
  363. try
  364. {
  365. process.Kill(); //结束进程
  366. }
  367. catch (Exception)
  368. {
  369. }
  370. }
  371. }
  372. }
  373. }
  374. /// <summary>
  375. /// 杀死正在运行的ffmpeg
  376. /// </summary>
  377. public static void Killffmpeg()
  378. {
  379. Process[] KillProcessArray = Process.GetProcessesByName("ffmpeg");
  380. foreach (Process KillProcess in KillProcessArray)
  381. {
  382. KillProcess.Kill();
  383. }
  384. }
  385. #endregion
  386. /// <summary>
  387. /// 错误处理
  388. /// </summary>
  389. /// <param name="sender"></param>
  390. /// <param name="e"></param>
  391. private void MyApp_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
  392. {
  393. LogHelper.WriteErrLog("未标示错误:" + e.Exception.Message, e.Exception);
  394. MessageWindow.Show("程序异常." + Environment.NewLine + e.Exception.Message);
  395. e.Handled = true;
  396. }
  397. #region 数据保存和读取
  398. /// <summary>
  399. /// 保存微课信息
  400. /// </summary>
  401. public static void SaveWkData()
  402. {
  403. try
  404. {
  405. WKData.VideoList = VideoList;
  406. if (WKDataList != null)
  407. {
  408. WKDataList.RemoveAll(x => x.WkPath == WKData.WkPath);
  409. }
  410. else
  411. {
  412. WKDataList = new List<Model_WKData>();
  413. }
  414. WKDataList.Add(WKData);
  415. //string WkDateXmlStr = XmlUtilHelper.Serializer(typeof(Model_WKData), WKData);
  416. string WkDateXmlStr = XmlUtilHelper.XmlSerialize(WKDataList);
  417. string SavePath = FileToolsCommon.GetFileAbsolutePath("/Data/");
  418. FileToolsCommon.CreateDirectory(SavePath);
  419. string SaveName = SavePath + "WkDate.d";
  420. FileToolsCommon.DeleteFile(SaveName);
  421. FileToolsCommon.WriteText(SaveName, WkDateXmlStr);
  422. }
  423. catch (Exception ex)
  424. {
  425. LogHelper.WriteErrLog("【微课数据保存】(SaveWkData)保存失败:" + ex.Message, ex);
  426. }
  427. }
  428. /// <summary>
  429. /// 读取微课信息
  430. /// </summary>
  431. public static void ReadWkData(string WkPath)
  432. {
  433. try
  434. {
  435. string SavePath = FileToolsCommon.GetFileAbsolutePath("/Data/");
  436. FileToolsCommon.CreateDirectory(SavePath);
  437. string SaveName = SavePath + "WkDate.d";
  438. //文件若存在则读取
  439. if (FileToolsCommon.IsExistFile(SaveName))
  440. {
  441. string WkDateXmlStr = FileToolsCommon.FileToString(SaveName);
  442. WKDataList = XmlUtilHelper.DESerializer<List<Model_WKData>>(WkDateXmlStr);
  443. foreach (Model_WKData wklist in WKDataList)
  444. {
  445. //移除找不到视频的微课数据
  446. wklist.VideoList.RemoveAll(x => !FileToolsCommon.IsExistFile(x.VideoPath));
  447. }
  448. if (WKDataList.Exists(x => x.WkPath == WkPath))
  449. {
  450. WKData = WKDataList.Find(x => x.WkPath == WkPath);
  451. VideoList = new List<Model_Video>();
  452. VideoList = WKData.VideoList;
  453. }
  454. }
  455. }
  456. catch (Exception ex)
  457. {
  458. LogHelper.WriteErrLog("【微课数据读取】(ReadWkData)读取失败:" + ex.Message, ex);
  459. }
  460. }
  461. /// <summary>
  462. /// 保存画板数据
  463. /// </summary>
  464. public static void SaveDraw()
  465. {
  466. try
  467. {
  468. if (PageDrawList == null)
  469. {
  470. return;
  471. }
  472. if (PageDrawList.Count < 1)
  473. {
  474. return;
  475. }
  476. FileToolsCommon.CreateDirectory(WKData.WkPath);
  477. string SavePath = WKData.WkPath + "PageData.d";
  478. FileToolsCommon.DeleteFile(SavePath);
  479. string PageDataXmlStr = XmlUtilHelper.XmlSerialize(PageDrawList);
  480. FileToolsCommon.WriteText(SavePath, PageDataXmlStr);
  481. }
  482. catch (Exception ex)
  483. {
  484. LogHelper.WriteErrLog("【画板数据保存】(SaveDraw)保存失败:" + ex.Message, ex);
  485. }
  486. }
  487. /// <summary>
  488. /// 读取文件
  489. /// </summary>
  490. public static void ReadDrawData()
  491. {
  492. try
  493. {
  494. PageDrawList = new List<Model_DrawData>();
  495. string SavePath = WKData.WkPath + "PageData.d";
  496. if (FileToolsCommon.IsExistFile(SavePath))
  497. {
  498. string PageDataXmlStr = FileToolsCommon.FileToString(SavePath);
  499. PageDrawList = XmlUtilHelper.DESerializer<List<Model_DrawData>>(PageDataXmlStr);
  500. }
  501. }
  502. catch (Exception ex)
  503. {
  504. LogHelper.WriteErrLog("【画板数据读取】(ReadDraw)读取失败:" + ex.Message, ex);
  505. }
  506. }
  507. #endregion
  508. #region 检测安装Screen Capturer Recorder
  509. /// <summary>
  510. /// 检测是否安装了Screen Capturer Recorder
  511. /// </summary>
  512. /// <returns></returns>
  513. public static bool CheckScreenCapturerRecorder()
  514. {
  515. if (FileToolsCommon.CheckSoftWartInstallState("Screen Capturer Recorder"))
  516. {
  517. //已经安装
  518. return true;
  519. }
  520. else
  521. {
  522. return false;
  523. }
  524. }
  525. /// <summary>
  526. /// 安装Screen Capturer Recorder
  527. /// </summary>
  528. /// <returns></returns>
  529. public static bool InstallScreenCapturerRecorder()
  530. {
  531. Process InstallProcess = new Process();
  532. string StandardError = "";
  533. string StandardOutput = "";
  534. try
  535. {
  536. InstallProcess.StartInfo.FileName = FileToolsCommon.GetFileAbsolutePath(@"/SSCR/Setup Screen Capturer Recorder v0.12.10.exe"); //绝对路径
  537. InstallProcess.StartInfo.UseShellExecute = false; //不使用操作系统外壳程序启动
  538. InstallProcess.StartInfo.RedirectStandardError = true; //重定向标准错误输出
  539. InstallProcess.StartInfo.RedirectStandardOutput = true;
  540. InstallProcess.StartInfo.CreateNoWindow = true; //不显示程序窗口
  541. InstallProcess.StartInfo.RedirectStandardInput = true; //用于模拟该进程控制台的输入
  542. //外部程序(这里是FFMPEG)输出流时候产生的事件,这里是把流的处理过程转移到下面的方法中,详细请查阅MSDN
  543. InstallProcess.ErrorDataReceived += new DataReceivedEventHandler(InstallProcess_ErrorDataReceived);
  544. InstallProcess.Start(); //启动线程
  545. InstallProcess.WaitForExit(); //阻塞等待进程结束
  546. StandardError = InstallProcess.StandardError.ReadToEnd();
  547. StandardOutput = InstallProcess.StandardOutput.ReadToEnd();
  548. int ExitCode = InstallProcess.ExitCode;
  549. InstallProcess.Close(); //关闭进程
  550. InstallProcess.Dispose(); //释放资源
  551. if (ExitCode == 0) //非0则为安装失败 1为取消安装
  552. {
  553. return true;
  554. }
  555. else
  556. {
  557. MessageBoxResult br = MessageWindow.Show("不安装环境将无法使用微课录制系统,是否现在安装?", "安装", MessageBoxButton.OKCancel);
  558. if (br == MessageBoxResult.OK)
  559. {
  560. return InstallScreenCapturerRecorder();
  561. }
  562. else
  563. {
  564. return false;
  565. }
  566. }
  567. }
  568. catch (Exception ex)
  569. {
  570. LogHelper.WriteErrLog("【ScreenCapturerRecorder安装】(installScreenCapturerRecorder)安装失败:" + ex.Message, ex);
  571. if (string.IsNullOrWhiteSpace(StandardError))
  572. {
  573. LogHelper.WriteErrLog("【ScreenCapturerRecorder安装】(installScreenCapturerRecorder)安装失败:" + StandardError, null);
  574. }
  575. if (string.IsNullOrWhiteSpace(StandardOutput))
  576. {
  577. LogHelper.WriteErrLog("【ScreenCapturerRecorder安装】(installScreenCapturerRecorder)安装返回信息:" + StandardOutput, null);
  578. }
  579. return false;
  580. }
  581. }
  582. /// <summary>
  583. /// 安装失败信息
  584. /// </summary>
  585. /// <param name="sender"></param>
  586. /// <param name="e"></param>
  587. private static void InstallProcess_ErrorDataReceived(object sender, DataReceivedEventArgs e)
  588. {
  589. LogHelper.WriteErrLog("【ScreenCapturerRecorder安装】(installScreenCapturerRecorder)安装失败:" + e.Data, null);
  590. //MessageWindow.Show(e.Data);
  591. }
  592. #endregion
  593. #region 内存处理 -创建人:赵耀 -创建时间:2020年8月12日
  594. /// <summary>
  595. /// 内存释放压缩
  596. /// </summary>
  597. /// <param name="e"></param>
  598. protected override void OnStartup(StartupEventArgs e)
  599. {
  600. //private LierdaCracker cracker = new LierdaCracker();
  601. //cracker.Cracker(5000);//间隔时间
  602. //base.OnStartup(e);
  603. new Thread(o =>
  604. {
  605. while (true)
  606. {
  607. try
  608. {
  609. //FreeMemoryHelper.SetDate();
  610. FreeMemoryHelper.ReallocateMemory();
  611. Thread.Sleep(20000);//暂定每20秒释放一次
  612. }
  613. catch (Exception ex)
  614. {
  615. LogHelper.WriteErrLog("【释放内存(MyApp)" + ex.Message, ex);
  616. }
  617. }
  618. }).Start();
  619. }
  620. #endregion 内存处理 -创建人:赵耀 -创建时间:2020年8月12日
  621. }
  622. }