1
This commit is contained in:
@@ -1055,7 +1055,16 @@ namespace RB_MES_API.Controllers
|
||||
};
|
||||
//数据包创建完成
|
||||
string jsonstr = JsonConvert.SerializeObject(batchJson);
|
||||
Stopwatch stopwatch = new Stopwatch();
|
||||
// 开始计时
|
||||
stopwatch.Start();
|
||||
string result = LocalStaticRequest.cloudApi.BatchSave(formid, jsonstr);
|
||||
// 停止计时
|
||||
stopwatch.Stop();
|
||||
// 获取执行时间
|
||||
TimeSpan elapsed = stopwatch.Elapsed;
|
||||
LogHelper.WriteLog($"执行时间: {elapsed.TotalMilliseconds} 毫秒");
|
||||
|
||||
//如果访问正常
|
||||
List<Dictionary<string, string>> billnos = new List<Dictionary<string, string>>();
|
||||
int errcode = 0;
|
||||
|
||||
Reference in New Issue
Block a user