|
|
@@ -1,4 +1,5 @@ |
|
|
|
using HKCardIN.Helper; |
|
|
|
using HandyControl.Controls; |
|
|
|
using HKCardIN.Helper; |
|
|
|
using HKCardIN.Logic.Model; |
|
|
|
using Newtonsoft.Json.Linq; |
|
|
|
using System; |
|
|
@@ -23,7 +24,9 @@ namespace HKCardIN.Logic |
|
|
|
{ |
|
|
|
return IHttpMultiClient.HttpMulti.AddNode(t => |
|
|
|
{ |
|
|
|
t.NodePath = ApiRoute.PullUserAndCardInfo + CardNo; |
|
|
|
t.NodePath = ApiRoute.PullUserAndCardInfo; |
|
|
|
t.ReqType = MultiType.POST; |
|
|
|
t.JsonParam = (new { cardNum = CardNo }).ToJson(); |
|
|
|
}).Build().RunStringFirst().ToModel<JObject>()["data"].ToJson().ToModel<UserAndCardInfo>(); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
@@ -46,11 +49,13 @@ namespace HKCardIN.Logic |
|
|
|
/// </summary> |
|
|
|
/// <param name="Phone"></param> |
|
|
|
/// <returns></returns> |
|
|
|
public string GetCardNoByPhone(string Phone) |
|
|
|
public UserAndCardInfo GetCardNoByPhone(string Phone) |
|
|
|
{ |
|
|
|
var data = IHttpMultiClient.HttpMulti.AddNode(t => { |
|
|
|
t.NodePath = ApiRoute.GetCardNoByPhone; |
|
|
|
}).Build().RunStringFirst(); |
|
|
|
t.ReqType = MultiType.POST; |
|
|
|
t.JsonParam = (new { phone = Phone }).ToJson(); |
|
|
|
}).Build().RunStringFirst().ToModel<JObject>()["data"].ToJson().ToModel<UserAndCardInfo>(); |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|