|
@@ -507,7 +507,28 @@ namespace MySystem
|
|
#region POSP-设置押金
|
|
#region POSP-设置押金
|
|
public static string SetPosPDeposit(string SnIds, string DepositId)
|
|
public static string SetPosPDeposit(string SnIds, string DepositId)
|
|
{
|
|
{
|
|
- // string DepositId = "299";
|
|
|
|
|
|
+ string policy_code = "";
|
|
|
|
+ string policy_name = "";
|
|
|
|
+ if(DepositId == "0")
|
|
|
|
+ {
|
|
|
|
+ policy_code = "LKB_000";
|
|
|
|
+ policy_name = "联客宝";
|
|
|
|
+ }
|
|
|
|
+ else if(DepositId == "99")
|
|
|
|
+ {
|
|
|
|
+ policy_code = "LKB_99";
|
|
|
|
+ policy_name = "联客宝";
|
|
|
|
+ }
|
|
|
|
+ else if(DepositId == "199")
|
|
|
|
+ {
|
|
|
|
+ policy_code = "LKB_199";
|
|
|
|
+ policy_name = "联客宝";
|
|
|
|
+ }
|
|
|
|
+ else if(DepositId == "299")
|
|
|
|
+ {
|
|
|
|
+ policy_code = "LKB_299";
|
|
|
|
+ policy_name = "联客宝299押金";
|
|
|
|
+ }
|
|
string check = RedisDbconn.Instance.Get<string>("SetPosPDepositWait:" + SnIds);
|
|
string check = RedisDbconn.Instance.Get<string>("SetPosPDepositWait:" + SnIds);
|
|
if (!string.IsNullOrEmpty(check))
|
|
if (!string.IsNullOrEmpty(check))
|
|
{
|
|
{
|
|
@@ -528,7 +549,7 @@ namespace MySystem
|
|
function.WriteLog(DateTime.Now.ToString() + ":请求参数," + pos.PosSn + ":" + DepositId, "POSP-设置押金-返回报文");
|
|
function.WriteLog(DateTime.Now.ToString() + ":请求参数," + pos.PosSn + ":" + DepositId, "POSP-设置押金-返回报文");
|
|
List<string> PosList = new List<string>();
|
|
List<string> PosList = new List<string>();
|
|
PosList.Add(pos.PosSn);
|
|
PosList.Add(pos.PosSn);
|
|
- string content = PublicImportDataService.Instance.PospServiceFee(PosList, DepositId, "");
|
|
|
|
|
|
+ string content = PublicImportDataService.Instance.PospServiceFee(PosList, policy_code, policy_name);
|
|
function.WriteLog(DateTime.Now.ToString() + "\n" + content, "POSP-设置押金-返回报文");
|
|
function.WriteLog(DateTime.Now.ToString() + "\n" + content, "POSP-设置押金-返回报文");
|
|
if (content == "fail")
|
|
if (content == "fail")
|
|
{
|
|
{
|