|
@@ -84,11 +84,11 @@ namespace MySystem
|
|
|
|
|
|
|
|
public void poscheck()
|
|
public void poscheck()
|
|
|
{
|
|
{
|
|
|
- if(RedisDbconn.Instance.Get<string>("TmpService_poscheck_flag") == "1")
|
|
|
|
|
|
|
+ if(RedisDbconn.Instance.Get<string>("TmpService_poscheck_flag2") == "1")
|
|
|
{
|
|
{
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- RedisDbconn.Instance.Set("TmpService_poscheck_flag", "1");
|
|
|
|
|
|
|
+ RedisDbconn.Instance.Set("TmpService_poscheck_flag2", "1");
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
@@ -168,7 +168,7 @@ namespace MySystem
|
|
|
// poslist = function.ReadInstance("tmpdata/2.txt").Split('\n').ToList();
|
|
// poslist = function.ReadInstance("tmpdata/2.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();
|
|
// 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();
|
|
// mernos = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList().Select(m => m.MerchantNo).ToList();
|
|
|
- // foreach(string merno in mernos)
|
|
|
|
|
|
|
+ // foreach(string merno in poslist)
|
|
|
// {
|
|
// {
|
|
|
// List<string> mernoList = new List<string>();
|
|
// List<string> mernoList = new List<string>();
|
|
|
// mernoList.Add(merno);
|
|
// mernoList.Add(merno);
|
|
@@ -216,13 +216,26 @@ namespace MySystem
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
//立刷微智能
|
|
//立刷微智能
|
|
|
- poslist = function.ReadInstance("tmpdata/lis.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
- foreach(string pos in poslist)
|
|
|
|
|
|
|
+ // 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);
|
|
|
|
|
+ // }
|
|
|
|
|
+
|
|
|
|
|
+ //联动力POS
|
|
|
|
|
+ mernos = function.ReadInstance("tmpdata/zzb.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
+ foreach(string merno in mernos)
|
|
|
{
|
|
{
|
|
|
- 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);
|
|
|
|
|
|
|
+ string content = SetDepositPostService.Instance.LDZZBFeeRate(merno, 0.68M, 3);
|
|
|
|
|
+ JsonData jsonObj = JsonMapper.ToObject(content);
|
|
|
|
|
+ string aesKey = jsonObj["encryptKey"].ToString();
|
|
|
|
|
+ aesKey = SetDepositPostService.Instance.LDZZBDecrypt(aesKey);
|
|
|
|
|
+ content += SetDepositPostService.Instance.AesDecrypt(jsonObj["data"].ToString(), aesKey);
|
|
|
|
|
+ function.WriteLog(merno + "\n" + content + "\n\n", "tmp联动力POS临时费率");
|
|
|
|
|
+ Thread.Sleep(1000);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
catch(Exception ex)
|
|
catch(Exception ex)
|