|
@@ -38,31 +38,26 @@ namespace MySystem.Controllers
|
|
|
// TianYuVoiceHelper.Instance.doSomething(DateTime.Now.ToString("yyyyMMddHHmmssfff"),"2023100701","100");
|
|
|
// MqLinksHelper.Instance.doSomething("LKB01230600250000585","100");
|
|
|
|
|
|
- WebCMSEntities db = new WebCMSEntities();
|
|
|
- Dictionary<string, decimal> ids = new Dictionary<string, decimal>();
|
|
|
- ids.Add("2023123120272680842405573", 30.08M);
|
|
|
- // ids.Add("2023110823050361106411696", 162.39M);
|
|
|
- // ids.Add("2023103111150680882895028", 129.97M);
|
|
|
- // ids.Add("2023110115111893112798296", 186.66M);
|
|
|
- // ids.Add("2023110119350047351848839", 219.15M);
|
|
|
- // ids.Add("2023103121092345128864326", 132.51M);
|
|
|
- // ids.Add("2023110119465569176817757", 219.16M);
|
|
|
- // ids.Add("2023110119570851706448968", 219.16M);
|
|
|
- // ids.Add("2023110119282078572281345", 208.32M);
|
|
|
- // ids.Add("2023103111025117492478602", 151.62M);
|
|
|
- // ids.Add("2023103111023104266492281", 129.96M);
|
|
|
- // ids.Add("2023103111020866149098706", 140.79M);
|
|
|
- // ids.Add("2023103111014803279616494", 162.45M);
|
|
|
- // ids.Add("2023103111011872712858973", 173.28M);
|
|
|
- foreach(string orderno in ids.Keys)
|
|
|
- {
|
|
|
- decimal cur = ids[orderno];
|
|
|
- ConsumerOrders order = db.ConsumerOrders.FirstOrDefault(m => m.OrderNo == orderno) ?? new ConsumerOrders();
|
|
|
- order.CurDivi = cur;
|
|
|
- order.SeoDescription = Regex.Replace(function.CheckNull(order.SeoDescription), "\"UpdateDate\":\".*?\"", "\"UpdateDate\":\"" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss") + "\"");
|
|
|
- order.SeoDescription = Regex.Replace(function.CheckNull(order.SeoDescription), "\"ProfitDays\":.*?,", "\"ProfitDays\":90,");
|
|
|
- RedisDbconn.Instance.AddList("ConsumerOrdersHd:Divi:" + order.PayMode + ":" + order.MerchantId, order);
|
|
|
- }
|
|
|
+ // WebCMSEntities db = new WebCMSEntities();
|
|
|
+ // Dictionary<string, decimal> ids = new Dictionary<string, decimal>();
|
|
|
+ // ids.Add("2023123120272680842405573", 30.08M);
|
|
|
+ // foreach(string orderno in ids.Keys)
|
|
|
+ // {
|
|
|
+ // decimal cur = ids[orderno];
|
|
|
+ // ConsumerOrders order = db.ConsumerOrders.FirstOrDefault(m => m.OrderNo == orderno) ?? new ConsumerOrders();
|
|
|
+ // order.CurDivi = cur;
|
|
|
+ // order.SeoDescription = Regex.Replace(function.CheckNull(order.SeoDescription), "\"UpdateDate\":\".*?\"", "\"UpdateDate\":\"" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss") + "\"");
|
|
|
+ // order.SeoDescription = Regex.Replace(function.CheckNull(order.SeoDescription), "\"ProfitDays\":.*?,", "\"ProfitDays\":90,");
|
|
|
+ // RedisDbconn.Instance.AddList("ConsumerOrdersHd:Divi:" + order.PayMode + ":" + order.MerchantId, order);
|
|
|
+ // }
|
|
|
+
|
|
|
+ // string content = function.ReadInstance("/222.log");
|
|
|
+ // string[] contents = content.Split('\n');
|
|
|
+ // foreach(string sub in contents)
|
|
|
+ // {
|
|
|
+ // // RedisDbconn.Instance.AddList("WeChatPayBackHd", sub);
|
|
|
+ // RedisDbconn.Instance.AddList("PartOrderQueue", sub);
|
|
|
+ // }
|
|
|
|
|
|
// List<int> orders = RedisDbconn.Instance.GetList<ConsumerOrders>("ConsumerOrdersHd:Divi:2:1272").Select(m => m.Id).ToList();
|
|
|
// DataTable dt = CustomerSqlConn.dtable("select OrderId,sum(GetMoney) money from ConsumerProfit where MerchantId=1272 group by OrderId order by OrderId", AppConfig.Base.SqlConnStr);
|
|
@@ -150,7 +145,7 @@ namespace MySystem.Controllers
|
|
|
// function.WriteLog("\n\n", "返现id");
|
|
|
// }
|
|
|
|
|
|
- db.Dispose();
|
|
|
+ // db.Dispose();
|
|
|
|
|
|
// decimal settleAmount = b / 100M;
|
|
|
// decimal divideAmt = (1 - 0.0038M) * a;
|