|
@@ -1,10 +1,14 @@ |
|
|
using HKCardIN.Helper; |
|
|
using HKCardIN.Helper; |
|
|
|
|
|
using Newtonsoft.Json.Linq; |
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
|
|
|
using System.Security.Policy; |
|
|
using System.Text; |
|
|
using System.Text; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
|
|
|
using XExten.Advance.HttpFramework.MultiCommon; |
|
|
using XExten.Advance.HttpFramework.MultiFactory; |
|
|
using XExten.Advance.HttpFramework.MultiFactory; |
|
|
|
|
|
using XExten.Advance.LinqFramework; |
|
|
|
|
|
|
|
|
namespace HKCardIN.Logic |
|
|
namespace HKCardIN.Logic |
|
|
{ |
|
|
{ |
|
@@ -14,11 +18,11 @@ namespace HKCardIN.Logic |
|
|
/// 同步用户和卡信息 |
|
|
/// 同步用户和卡信息 |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
/// <returns></returns> |
|
|
/// <returns></returns> |
|
|
public async Task<dynamic> PullUserAndCardInfo() |
|
|
|
|
|
|
|
|
public async Task<dynamic> PullUserAndCardInfo(string CardNo) |
|
|
{ |
|
|
{ |
|
|
return await IHttpMultiClient.HttpMulti.AddNode(t => |
|
|
return await IHttpMultiClient.HttpMulti.AddNode(t => |
|
|
{ |
|
|
{ |
|
|
t.NodePath = ApiRoute.PullUserAndCardInfo; |
|
|
|
|
|
|
|
|
t.NodePath = ApiRoute.PullUserAndCardInfo; |
|
|
}).Build().RunStringFirstAsync(); |
|
|
}).Build().RunStringFirstAsync(); |
|
|
} |
|
|
} |
|
|
/// <summary> |
|
|
/// <summary> |
|
@@ -26,12 +30,15 @@ namespace HKCardIN.Logic |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
/// <param name="input"></param> |
|
|
/// <param name="input"></param> |
|
|
/// <returns></returns> |
|
|
/// <returns></returns> |
|
|
public async Task<dynamic> PushMoneyToServer(dynamic input) |
|
|
|
|
|
|
|
|
public bool PushMoneyToServer(string CardNo, decimal Money) |
|
|
{ |
|
|
{ |
|
|
return await IHttpMultiClient.HttpMulti.AddNode(t => |
|
|
|
|
|
|
|
|
var data = IHttpMultiClient.HttpMulti.AddNode(t => |
|
|
{ |
|
|
{ |
|
|
t.NodePath = ApiRoute.PushMoneyToServer; |
|
|
t.NodePath = ApiRoute.PushMoneyToServer; |
|
|
}).Build().RunStringFirstAsync(); |
|
|
|
|
|
|
|
|
t.ReqType = MultiType.POST; |
|
|
|
|
|
t.JsonParam = (new { Money, Type = 1, No = CardNo }).ToJson(); |
|
|
|
|
|
}).Build().RunStringFirst(); |
|
|
|
|
|
return bool.Parse(data.ToModel<JObject>()["data"].ToString()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |