agv
This commit is contained in:
@@ -167,10 +167,16 @@ namespace ZR.Service.Business
|
||||
|
||||
|
||||
string response= HttpHelper.HttpPost(url, postData);
|
||||
|
||||
|
||||
// 保存当前控制台文本颜色
|
||||
ConsoleColor originalColor = Console.ForegroundColor;
|
||||
|
||||
AGV_task_third res_data= JsonSerializer.Deserialize<AGV_task_third>(response);
|
||||
// 设置文本颜色为红色
|
||||
Console.ForegroundColor = ConsoleColor.Red;
|
||||
Console.WriteLine("=======》打印请求数据返回:"+response);
|
||||
Console.ForegroundColor = originalColor;
|
||||
|
||||
|
||||
AGV_task_third res_data= JsonSerializer.Deserialize<AGV_task_third>(response);
|
||||
|
||||
if(res_data!=null &&res_data.code=="0") {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user