LogisticsSyncAck.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using WdtSdk;
  7. namespace LogisticsSyncAck
  8. {
  9. class LogisticsSyncAck
  10. {
  11. static void Main(string[] args)
  12. {
  13. WdtClient client = new WdtClient();
  14. client.sid = "";
  15. client.appkey = "";
  16. client.appsecret = "";
  17. client.gatewayUrl = "http://121.41.177.115/openapi2/logistics_sync_ack.php";
  18. var logistics_list = new[]
  19. {
  20. new
  21. {
  22. rec_id = "5496",
  23. status = "0",
  24. message = "同步成功"
  25. },
  26. new
  27. {
  28. rec_id = "5557",
  29. status = "0",
  30. message = "同步成功"
  31. },
  32. new
  33. {
  34. rec_id = "5558",
  35. status = "0",
  36. message = "同步成功"
  37. }
  38. };
  39. String json = logistics_list.ToJsonString();
  40. client.putParams("logistics_list", json);
  41. string result = client.wdtOpenapi();
  42. Console.WriteLine(result);
  43. Console.ReadKey();
  44. }
  45. }
  46. }