|
|
@@ -30,10 +30,10 @@ namespace MySystem
|
|
|
{
|
|
|
if(DateTime.Now.Hour > 3 && DateTime.Now.Hour < 5)
|
|
|
{
|
|
|
- string chk = function.ReadInstance("/WifiWithhold/" + DateTime.Now.ToString("yyyyMMdd") + ".txt");
|
|
|
+ string chk = function.ReadInstance("/WifiWithholdDo/" + DateTime.Now.ToString("yyyyMMdd") + ".txt");
|
|
|
if(string.IsNullOrEmpty(chk))
|
|
|
{
|
|
|
- function.WritePage("/WifiWithhold/", "" + DateTime.Now.ToString("yyyyMMdd") + ".txt", DateTime.Now.ToString());
|
|
|
+ function.WritePage("/WifiWithholdDo/", "" + DateTime.Now.ToString("yyyyMMdd") + ".txt", DateTime.Now.ToString());
|
|
|
WifiWithhold();
|
|
|
}
|
|
|
}
|
|
|
@@ -68,17 +68,21 @@ namespace MySystem
|
|
|
{
|
|
|
KqProducts brand = db.KqProducts.FirstOrDefault(m => m.Id == Pos.BrandId) ?? new KqProducts();
|
|
|
decimal ChargeAmount = decimal.Parse(function.CheckNum(Pos.SeoKeyword));
|
|
|
- db.ToChargeBackRecord.Add(new ToChargeBackRecord
|
|
|
+ bool check = db.ToChargeBackRecord.Any(m => m.SeoDescription.Contains(Pos.PosSn) && (m.Status == 3 || m.Status == 0));
|
|
|
+ if(!check)
|
|
|
{
|
|
|
- CreateDate = DateTime.Now,
|
|
|
- SeoTitle = "系统",
|
|
|
- SeoDescription = "WIFI超时未激活扣款",
|
|
|
- Remark = "WIFI超时未激活扣款",
|
|
|
- ChargeType = 1,
|
|
|
- ChargeAmount = ChargeAmount,
|
|
|
- UserId = Pos.BuyUserId,
|
|
|
- Field1 = Pos.PosSn,
|
|
|
- });
|
|
|
+ db.ToChargeBackRecord.Add(new ToChargeBackRecord
|
|
|
+ {
|
|
|
+ CreateDate = DateTime.Now,
|
|
|
+ SeoTitle = "系统",
|
|
|
+ SeoDescription = "WIFI超时未激活扣款",
|
|
|
+ Remark = "WIFI超时未激活扣款",
|
|
|
+ ChargeType = 1,
|
|
|
+ ChargeAmount = ChargeAmount,
|
|
|
+ UserId = Pos.BuyUserId,
|
|
|
+ Field1 = Pos.PosSn,
|
|
|
+ });
|
|
|
+ }
|
|
|
PosMachinesTwo edit = db.PosMachinesTwo.FirstOrDefault(m => m.Id == Pos.Id);
|
|
|
if(edit != null)
|
|
|
{
|