|
@@ -84,6 +84,11 @@ namespace MySystem
|
|
|
|
|
|
|
|
public void poscheck()
|
|
public void poscheck()
|
|
|
{
|
|
{
|
|
|
|
|
+ if(RedisDbconn.Instance.Get<string>("TmpService_poscheck_flag") == "1")
|
|
|
|
|
+ {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ RedisDbconn.Instance.Set("TmpService_poscheck_flag", "1");
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
@@ -92,13 +97,13 @@ namespace MySystem
|
|
|
List<string> mernos = new List<string>();
|
|
List<string> mernos = new List<string>();
|
|
|
|
|
|
|
|
//金控
|
|
//金控
|
|
|
- poslist = function.ReadInstance("tmpdata/jk.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
- foreach(string pos in poslist)
|
|
|
|
|
- {
|
|
|
|
|
- string result = PublicImportDataService.Instance.LkbSetFee(pos, 2.99M, 300);
|
|
|
|
|
- function.WriteLog(pos + "\n" + result + "\n\n", "tmp金控临时费率");
|
|
|
|
|
- Thread.Sleep(500);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // poslist = function.ReadInstance("tmpdata/jk.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
+ // foreach(string pos in poslist)
|
|
|
|
|
+ // {
|
|
|
|
|
+ // string result = PublicImportDataService.Instance.LkbSetFee(pos, 2.99M, 300);
|
|
|
|
|
+ // function.WriteLog(pos + "\n" + result + "\n\n", "tmp金控临时费率");
|
|
|
|
|
+ // Thread.Sleep(500);
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
// //盛付通
|
|
// //盛付通
|
|
|
// poslist = function.ReadInstance("tmpdata/1.txt").Replace("\r", "").Split('\n').ToList();
|
|
// poslist = function.ReadInstance("tmpdata/1.txt").Replace("\r", "").Split('\n').ToList();
|
|
@@ -209,6 +214,16 @@ namespace MySystem
|
|
|
// 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);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
catch(Exception ex)
|
|
catch(Exception ex)
|
|
|
{
|
|
{
|