|
|
@@ -212,31 +212,31 @@ namespace MySystem
|
|
|
// }
|
|
|
|
|
|
//立刷微电签
|
|
|
- poslist = function.ReadInstance("tmpdata/lswdq.txt").Split('\n').ToList();
|
|
|
- var poses = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 22 && m.MerchantId > 0).ToList();
|
|
|
- merids = poses.Select(m => m.MerchantId).ToList();
|
|
|
- var mers = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList();
|
|
|
- foreach(var pos in poses)
|
|
|
- {
|
|
|
- var mer = mers.FirstOrDefault(m => m.Id == pos.MerchantId);
|
|
|
- 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", "0");
|
|
|
- function.WriteLog(pos.PosSn + "\n" + mer.MerchantNo + "\n" + result + "\n\n", "tmp立刷微电签临时费率");
|
|
|
- Thread.Sleep(500);
|
|
|
- }
|
|
|
- }
|
|
|
+ // poslist = function.ReadInstance("tmpdata/lswdq.txt").Split('\n').ToList();
|
|
|
+ // var poses = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 22 && m.MerchantId > 0).ToList();
|
|
|
+ // merids = poses.Select(m => m.MerchantId).ToList();
|
|
|
+ // var mers = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList();
|
|
|
+ // foreach(var pos in poses)
|
|
|
+ // {
|
|
|
+ // var mer = mers.FirstOrDefault(m => m.Id == pos.MerchantId);
|
|
|
+ // 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", "0");
|
|
|
+ // function.WriteLog(pos.PosSn + "\n" + mer.MerchantNo + "\n" + result + "\n\n", "tmp立刷微电签临时费率");
|
|
|
+ // Thread.Sleep(500);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
//立刷微智能
|
|
|
- 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);
|
|
|
- }
|
|
|
+ // 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
|
|
|
mernos = function.ReadInstance("tmpdata/zzb.txt").Replace("\r", "").Split('\n').ToList();
|