From 95d51dfc65299bdb735a855b515af84ca5b58252 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 23 十二月 2020 17:26:13 +0800 Subject: [PATCH] Merge branch 'NewFilePath' into CJL --- HDL_ON/Entity/Function/Function.cs | 32 ++++++++++++++++++++++---------- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index a41d3d2..68d53ae 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -316,6 +316,15 @@ return "FunctionData_" + sid; } } + + /// <summary> + /// 淇濆瓨鍔熻兘鏂囦欢 + /// </summary> + public void SaveFunctionFile() + { + + } + /// <summary> /// 淇濆瓨鍔熻兘鏁版嵁 /// </summary> @@ -323,17 +332,20 @@ { if (upSevser) { - var pm = new HttpServerRequest(); - var pack = pm.UpdataDevcieInfo(this); - if (pack.Code == StateCode.SUCCESS) + new System.Threading.Thread(() => { - var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this)); - FileUtlis.Files.WriteFileByBytes(savePath, ssd); - } - else - { - IMessageCommon.Current.ShowErrorInfoAlter(pack.Code); - } + var pm = new HttpServerRequest(); + var pack = pm.UpdataDevcieInfo(this); + if (pack.Code == StateCode.SUCCESS) + { + var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this)); + FileUtlis.Files.WriteFileByBytes(savePath, ssd); + } + else + { + IMessageCommon.Current.ShowErrorInfoAlter(pack.Code); + } + }); } else { -- Gitblit v1.8.0