| | |
| | | if (hIKROBOTTaskSubmit == null) throw new Exception("海康AGVä»»å¡å®ä½è½¬æ¢å¤±è´¥"); |
| | | var json = hIKROBOTTaskSubmit.Serialize(); |
| | | #endregion |
| | | string response = HttpHelper.Post(apiInfo.ApiAddress, hIKROBOTTaskSubmit.Serialize()); |
| | | // å建Headersåå
¸ |
| | | var headers = new Dictionary<string, string> |
| | | { |
| | | { "X-lr-request-id", DateTimeOffset.Now.ToUnixTimeSeconds().ToString() } |
| | | // 妿éè¦å
¶ä»Headerï¼å¯ä»¥ç»§ç»æ·»å |
| | | // { "Content-Type", "application/json" } |
| | | }; |
| | | |
| | | // ä¼ éHeadersåæ° |
| | | string response = HttpHelper.Post(apiInfo.ApiAddress, hIKROBOTTaskSubmit.Serialize(), headers: headers); |
| | | //string response = HttpHelper.Post(apiInfo.ApiAddress, hIKROBOTTaskSubmit.Serialize()); |
| | | hIKROBOTReturn = response.DeserializeObject<HIKROBOTReturn>(); |
| | | if (hIKROBOTReturn.code == "SUCCESS") |
| | | { |