终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132
  1. using BPASmartClient.AGV.Feedback;
  2. using BPASmartClient.Helper;
  3. using BPASmartClient.Http;
  4. using Newtonsoft.Json;
  5. namespace TestDemo
  6. {
  7. public partial class Form1 : Form
  8. {
  9. public Form1()
  10. {
  11. InitializeComponent();
  12. }
  13. private void button1_Click(object sender, EventArgs e)
  14. {
  15. AGVToUpSystem aGVToUpSystem = new AGVToUpSystem();
  16. string value = JsonConvert.SerializeObject(aGVToUpSystem);
  17. string url = $"http://192.168.1.130:8089/apicallback/quicktron/robotjob/report?sign={value}";
  18. var res = APIHelper.GetInstance.HttpRequest(url, "", aGVToUpSystem, RequestType.POST);
  19. }
  20. private void button2_Click(object sender, EventArgs e)
  21. {
  22. Upstreamrequest aGVToUpSystem = new Upstreamrequest();
  23. string value = JsonConvert.SerializeObject(aGVToUpSystem);
  24. string url = $"http://192.168.1.130:8089/apicallback/quicktron/robotjob/upstreamrequest?sign={value}";
  25. var res = APIHelper.GetInstance.HttpRequest(url, "", aGVToUpSystem, RequestType.POST);
  26. }
  27. }
  28. }