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

RemoteService.cs 1.4 KiB

2 年前
2 年前
2 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using HKCardOUT.Helper;
  2. using Logic.RemoteModel;
  3. using Newtonsoft.Json.Linq;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using XExten.Advance.HttpFramework.MultiFactory;
  10. using XExten.Advance.LinqFramework;
  11. namespace HKCardOUT.Logic
  12. {
  13. public class RemoteService
  14. {
  15. /// <summary>
  16. /// 判断卡状态
  17. /// </summary>
  18. /// <param name="input"></param>
  19. public static void CheckCardStuatas(string input)
  20. {
  21. IHttpMultiClient.HttpMulti.AddNode(t =>
  22. {
  23. t.NodePath = ApiRoute.CheckCardStatus;
  24. }).Build().RunStringFirst();
  25. }
  26. /// <summary>
  27. /// 同步消费记录
  28. /// </summary>
  29. /// <param name="input"></param>
  30. public static void SyncSaleLog(dynamic input)
  31. {
  32. IHttpMultiClient.HttpMulti.AddNode(t =>
  33. {
  34. t.NodePath = ApiRoute.SyncSaleLog;
  35. }).Build().RunStringFirst();
  36. }
  37. /// <summary>
  38. /// 获取店铺信息
  39. /// </summary>
  40. public static void PullShopInfo()
  41. {
  42. var data = IHttpMultiClient.HttpMulti.AddNode(t =>
  43. {
  44. t.NodePath = ApiRoute.PullShopInfo;
  45. }).Build().RunStringFirst()
  46. .ToModel<JObject>()["data"].ToJson().ToModel<StoreInfoResponse>();
  47. DataBus.StoreInfo = data;
  48. }
  49. }
  50. }