|
@@ -177,6 +177,18 @@ namespace MySystem
|
|
|
Thread.Sleep(500);
|
|
Thread.Sleep(500);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ poslist = function.ReadInstance("tmpdata/lkbdq0.txt").Split('\n').ToList();
|
|
|
|
|
+ merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 15 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
|
|
|
+ mernos = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList().Select(m => m.MerchantNo).ToList();
|
|
|
|
|
+ foreach(string merno in poslist)
|
|
|
|
|
+ {
|
|
|
|
|
+ List<string> mernoList = new List<string>();
|
|
|
|
|
+ mernoList.Add(merno);
|
|
|
|
|
+ string result = PublicImportDataService.Instance.PospFee(mernoList, "LKB_0.65", "联客宝0.65");
|
|
|
|
|
+ function.WriteLog(merno + "\n" + result + "\n\n", "tmp来客吧电签临时费率0");
|
|
|
|
|
+ Thread.Sleep(500);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// //联动电签
|
|
// //联动电签
|
|
|
// poslist = function.ReadInstance("tmpdata/3.txt").Split('\n').ToList();
|
|
// poslist = function.ReadInstance("tmpdata/3.txt").Split('\n').ToList();
|
|
|
// merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 10 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
// merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 10 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
@@ -209,27 +221,29 @@ namespace MySystem
|
|
|
var mer = mers.FirstOrDefault(m => m.Id == pos.MerchantId);
|
|
var mer = mers.FirstOrDefault(m => m.Id == pos.MerchantId);
|
|
|
if(mer != null)
|
|
if(mer != null)
|
|
|
{
|
|
{
|
|
|
- string result = PublicImportDataService.Instance.SetLiSWeFee(pos.PosSn, mer.MerchantNo, "0.63", "300");
|
|
|
|
|
|
|
+ // string result = PublicImportDataService.Instance.SetLiSWeFee(pos.PosSn, mer.MerchantNo, "0.63", "300");
|
|
|
|
|
+ string result = PublicImportDataService.Instance.SetLiSWeFee(pos.PosSn, mer.MerchantNo, "0.63", "0");
|
|
|
function.WriteLog(pos.PosSn + "\n" + mer.MerchantNo + "\n" + result + "\n\n", "tmp立刷微电签临时费率");
|
|
function.WriteLog(pos.PosSn + "\n" + mer.MerchantNo + "\n" + result + "\n\n", "tmp立刷微电签临时费率");
|
|
|
Thread.Sleep(500);
|
|
Thread.Sleep(500);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//立刷微智能
|
|
//立刷微智能
|
|
|
- // poslist = function.ReadInstance("tmpdata/lis.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
- // foreach(string pos in poslist)
|
|
|
|
|
- // {
|
|
|
|
|
- // string[] parts = pos.Split('|');
|
|
|
|
|
- // string result = PublicImportDataService.Instance.SetLiSWeFee(parts[0], parts[1], "0.63", "0");
|
|
|
|
|
- // function.WriteLog(parts[0] + "\n" + parts[1] + "\n" + result + "\n\n", "tmp立刷微智能临时费率");
|
|
|
|
|
- // Thread.Sleep(1500);
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ poslist = function.ReadInstance("tmpdata/liwzn.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
+ foreach(string pos in poslist)
|
|
|
|
|
+ {
|
|
|
|
|
+ string[] parts = pos.Split('|');
|
|
|
|
|
+ string result = PublicImportDataService.Instance.SetLiSWeFee(parts[0], parts[1], "0.63", "0");
|
|
|
|
|
+ function.WriteLog(parts[0] + "\n" + parts[1] + "\n" + result + "\n\n", "tmp立刷微智能临时费率");
|
|
|
|
|
+ Thread.Sleep(1500);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
//联动力POS
|
|
//联动力POS
|
|
|
mernos = function.ReadInstance("tmpdata/zzb.txt").Replace("\r", "").Split('\n').ToList();
|
|
mernos = function.ReadInstance("tmpdata/zzb.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
foreach(string merno in mernos)
|
|
foreach(string merno in mernos)
|
|
|
{
|
|
{
|
|
|
- string content = SetDepositPostService.Instance.LDZZBFeeRate(merno, 0.68M, 3);
|
|
|
|
|
|
|
+ // string content = SetDepositPostService.Instance.LDZZBFeeRate(merno, 0.68M, 3);
|
|
|
|
|
+ string content = SetDepositPostService.Instance.LDZZBFeeRate(merno, 0.68M, 0);
|
|
|
JsonData jsonObj = JsonMapper.ToObject(content);
|
|
JsonData jsonObj = JsonMapper.ToObject(content);
|
|
|
string aesKey = jsonObj["encryptKey"].ToString();
|
|
string aesKey = jsonObj["encryptKey"].ToString();
|
|
|
aesKey = SetDepositPostService.Instance.LDZZBDecrypt(aesKey);
|
|
aesKey = SetDepositPostService.Instance.LDZZBDecrypt(aesKey);
|
|
@@ -237,6 +251,15 @@ namespace MySystem
|
|
|
function.WriteLog(merno + "\n" + content + "\n\n", "tmp联动力POS临时费率");
|
|
function.WriteLog(merno + "\n" + content + "\n\n", "tmp联动力POS临时费率");
|
|
|
Thread.Sleep(1000);
|
|
Thread.Sleep(1000);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //盒易付
|
|
|
|
|
+ mernos = function.ReadInstance("tmpdata/hyf.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
+ foreach(string merno in mernos)
|
|
|
|
|
+ {
|
|
|
|
|
+ string content = SetDepositPostService.Instance.BoxFee(merno, "0.65");
|
|
|
|
|
+ function.WriteLog(merno + "\n" + content + "\n\n", "tmp盒易付临时费率");
|
|
|
|
|
+ Thread.Sleep(1000);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
catch(Exception ex)
|
|
catch(Exception ex)
|
|
|
{
|
|
{
|