Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- using HKCardOUT.Helper;
- using Logic.RemoteModel;
- using Newtonsoft.Json.Linq;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using XExten.Advance.HttpFramework.MultiFactory;
- using XExten.Advance.LinqFramework;
-
- namespace HKCardOUT.Logic
- {
- public class RemoteService
- {
- /// <summary>
- /// 判断卡状态
- /// </summary>
- /// <param name="input"></param>
- public static void CheckCardStuatas(string input)
- {
- IHttpMultiClient.HttpMulti.AddNode(t =>
- {
- t.NodePath = ApiRoute.CheckCardStatus;
- }).Build().RunStringFirst();
- }
- /// <summary>
- /// 同步消费记录
- /// </summary>
- /// <param name="input"></param>
- public static void SyncSaleLog(dynamic input)
- {
- IHttpMultiClient.HttpMulti.AddNode(t =>
- {
- t.NodePath = ApiRoute.SyncSaleLog;
- }).Build().RunStringFirst();
- }
- /// <summary>
- /// 获取店铺信息
- /// </summary>
- public static void PullShopInfo()
- {
- var data = IHttpMultiClient.HttpMulti.AddNode(t =>
- {
- t.NodePath = ApiRoute.PullShopInfo;
- }).Build().RunStringFirst()
- .ToModel<JObject>()["data"].ToJson().ToModel<StoreInfoResponse>();
- DataBus.StoreInfo = data;
- }
- }
- }
|