|
|
@@ -72,6 +72,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
db.SaveChanges();
|
|
|
function.WriteLog(DateTime.Now.ToString() + ":下级:" + MakerCode + ", 上级:" + ParentMakerCode, "换线日志");
|
|
|
+ AddSysLog("MakerCode:" + MakerCode + "ParentMakerCode:" + ParentMakerCode, "SysTools", "RelationForUserDo");
|
|
|
return "success";
|
|
|
}
|
|
|
return "创客编号不存在";
|
|
|
@@ -108,6 +109,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string CheckMachineDo(string MakerCode, string PosSn, int AddActPrize = 0, int IsSend = 0)
|
|
|
{
|
|
|
+ AddSysLog("MakerCode:" + MakerCode + "PosSn:" + PosSn + "AddActPrize:" + AddActPrize, "SysTools", "CheckMachineDo");
|
|
|
if (string.IsNullOrEmpty(MakerCode))
|
|
|
{
|
|
|
return "请输入创客编号";
|
|
|
@@ -345,6 +347,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string CheckMachine2Do(string MakerCode, string PosSn, string MerNo = "", int AddActPrize = 0)
|
|
|
{
|
|
|
+ AddSysLog("MakerCode:" + MakerCode + "PosSn:" + PosSn + "AddActPrize:" + AddActPrize, "SysTools", "CheckMachine2Do");
|
|
|
if (string.IsNullOrEmpty(MakerCode))
|
|
|
{
|
|
|
return "请输入创客编号";
|
|
|
@@ -531,6 +534,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string CheckMachineForTeam1Do(string MakerCode, string PosSn, int AddActPrize = 0, int IsSend = 0)
|
|
|
{
|
|
|
+ AddSysLog("MakerCode:" + MakerCode + "PosSn:" + PosSn + "AddActPrize:" + AddActPrize, "SysTools", "CheckMachineForTeam1Do");
|
|
|
if (string.IsNullOrEmpty(MakerCode))
|
|
|
{
|
|
|
return "请输入创客编号";
|
|
|
@@ -968,6 +972,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string SetMerAgentDo(string MakerCode, string PosSn, string MerNo, int IsSend = 0)
|
|
|
{
|
|
|
+ AddSysLog("MakerCode:" + MakerCode + "PosSn:" + PosSn + "MerNo:" + MerNo, "SysTools", "SetMerAgentDo");
|
|
|
if (string.IsNullOrEmpty(MakerCode))
|
|
|
{
|
|
|
return "请输入创客编号";
|
|
|
@@ -1093,6 +1098,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string CancelMerAgentDo(string MakerCode, string PosSn, int IsSend = 0)
|
|
|
{
|
|
|
+ AddSysLog("MakerCode:" + MakerCode + "PosSn:" + PosSn, "SysTools", "CancelMerAgentDo");
|
|
|
if (string.IsNullOrEmpty(MakerCode))
|
|
|
{
|
|
|
return "请输入创客编号";
|
|
|
@@ -1200,6 +1206,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string SeeSnDetailDo(string PosSn)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn, "SysTools", "SeeSnDetailDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
@@ -1464,6 +1471,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string MakeCouponsDo(int Kind, int Number)
|
|
|
{
|
|
|
+ AddSysLog("Kind:" + Kind + "Number:" + Number, "SysTools", "MakeCouponsDo");
|
|
|
DateTime checkTime = DateTime.Parse("1900-01-01");
|
|
|
string checkTimeString = RedisDbconn.Instance.Get<string>("MakerCouponsQueueCheckTime");
|
|
|
if (!string.IsNullOrEmpty(checkTimeString))
|
|
|
@@ -1493,6 +1501,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public JsonResult ExportPosDo()
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "ExportPosDo");
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
List<PosMachinesTwo> poses = db.PosMachinesTwo.Where(m => m.CreditTrade < 1000 && m.BindingState == 1).ToList();
|
|
|
int total = poses.Count;
|
|
|
@@ -1581,6 +1590,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string ChangePosDo(string OldSn, string NewSn, string BackStoreNo, string OutStoreNo, string MerNo = "", int IsSend = 0)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "ChangePosDo");
|
|
|
if (string.IsNullOrEmpty(OldSn))
|
|
|
{
|
|
|
return "请输入原机具SN";
|
|
|
@@ -1830,6 +1840,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string ChangeBadPosDo(string ChangeType, string MakerCode, string StoreCode, string OldSn, string NewSn, string FromStoreNo, string BackStoreNo, int IsSend = 0)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "ChangeBadPosDo");
|
|
|
string[] OldSnList;
|
|
|
string[] NewSnList;
|
|
|
decimal amount = 0;
|
|
|
@@ -2329,6 +2340,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string ChangePosCrossBrandDo(string MakerCode, string OldSn, string BackStoreNo, string NewSn, string FromStoreNo, int IsSend = 0)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "ChangePosCrossBrandDo");
|
|
|
string[] OldSnList;
|
|
|
string[] NewSnList;
|
|
|
decimal amount = 0;
|
|
|
@@ -2629,6 +2641,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string UnbindDo(string PosSn, string MakerCode, string MerNo, int IsSend = 0)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn + "MakerCode:" + MakerCode + "MerNo:" + MerNo, "SysTools", "UnbindDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
@@ -2783,6 +2796,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string ChangeSignQuanDo(string Coupons, string MakerCode)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "ChangeSignQuanDo");
|
|
|
if (string.IsNullOrEmpty(Coupons))
|
|
|
{
|
|
|
return "请输入机具券码,多个券码用回车分隔";
|
|
|
@@ -2828,6 +2842,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string ChangeSignSnDo(string PosSn, string MakerCode)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "ChangeSignSnDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN,多个SN用回车分隔";
|
|
|
@@ -2887,6 +2902,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
public IActionResult LoopData(string SwapSnExpand, string SnNos, int page = 1, int limit = 30)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "LoopData");
|
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
Fields.Add("SwapSnExpand", "1"); //申请机具SN
|
|
|
Fields.Add("SnNos", "1"); //发货机具SN
|
|
|
@@ -3021,6 +3037,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
public string SourceLoopData(string SnNo, int page = 1, int limit = 30)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "SourceLoopData");
|
|
|
var result = "";
|
|
|
var machineForSnNo = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == SnNo) ?? new MachineForSnNo();
|
|
|
var pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == machineForSnNo.SnId) ?? new PosMachinesTwo();
|
|
|
@@ -3056,6 +3073,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public Dictionary<string, string> Prize100Do(string MakerCode)
|
|
|
{
|
|
|
+ AddSysLog("MakerCode:" + MakerCode, "SysTools", "Prize100Do");
|
|
|
Dictionary<string, string> dic = new Dictionary<string, string>();
|
|
|
string result = "";
|
|
|
UserForMakerCode forMakerCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode);
|
|
|
@@ -3133,6 +3151,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
public string AddPrize100(int Id)
|
|
|
{
|
|
|
+ AddSysLog(Id, "SysTools", "AddPrize100");
|
|
|
Orders order = db.Orders.FirstOrDefault(m => m.Id == Id);
|
|
|
if (order != null)
|
|
|
{
|
|
|
@@ -3177,6 +3196,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
public void DirectPrize(WebCMSEntities db, int OrderId, int UserId, int Count = 1)
|
|
|
{
|
|
|
+ AddSysLog("OrderId:" + OrderId + "UserId:" + UserId, "SysTools", "DirectPrize");
|
|
|
UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == UserId);
|
|
|
if (account == null)
|
|
|
{
|
|
|
@@ -3228,6 +3248,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public Dictionary<string, string> OpenPrizeDo(string PosSn)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn, "SysTools", "OpenPrizeDo");
|
|
|
Dictionary<string, string> dic = new Dictionary<string, string>();
|
|
|
string result = "";
|
|
|
PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == PosSn);
|
|
|
@@ -3287,6 +3308,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
public string AddOpenPrize(int Id)
|
|
|
{
|
|
|
+ AddSysLog(Id, "SysTools", "AddOpenPrize");
|
|
|
PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == Id && m.ActivationState == 1);
|
|
|
if (pos == null)
|
|
|
{
|
|
|
@@ -3344,6 +3366,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public Dictionary<string, string> FluxPrizeDo(string PosSn)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn, "SysTools", "FluxPrizeDo");
|
|
|
Dictionary<string, string> dic = new Dictionary<string, string>();
|
|
|
string result = "";
|
|
|
PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == PosSn);
|
|
|
@@ -3398,6 +3421,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
public string AddFluxPrize(int Id)
|
|
|
{
|
|
|
+ AddSysLog(Id, "SysTools", "AddFluxPrize");
|
|
|
PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == Id && m.ActivationState == 1);
|
|
|
if (pos == null)
|
|
|
{
|
|
|
@@ -3589,6 +3613,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string LisFeeDo(string PosSns, decimal Fee, string Kind, string Fix)
|
|
|
{
|
|
|
+ AddSysLog("PosSns:" + PosSns, "SysTools", "LisFeeDo");
|
|
|
if (string.IsNullOrEmpty(PosSns))
|
|
|
{
|
|
|
return "请输入机具号";
|
|
|
@@ -3641,6 +3666,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
// 设置费率
|
|
|
public string SetLiSFee(string sn, decimal serviceFee)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + sn + "serviceFee:" + serviceFee, "SysTools", "SetLiSFee");
|
|
|
Dictionary<string, object> dic = new Dictionary<string, object>();
|
|
|
dic.Add("agentId", LiSAgentId);
|
|
|
dic.Add("deviceSn", sn);
|
|
|
@@ -3663,6 +3689,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
// 设置押金
|
|
|
public string SetLiSDeposit(string sn, int serviceFee)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + sn + "serviceFee:" + serviceFee, "SysTools", "SetLiSDeposit");
|
|
|
serviceFee = serviceFee * 100;
|
|
|
Dictionary<string, object> dic = new Dictionary<string, object>();
|
|
|
dic.Add("agentId", LiSAgentId);
|
|
|
@@ -3764,6 +3791,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string CheckThreeElementsDo(string bankcard, string idcard, string name)
|
|
|
{
|
|
|
+ AddSysLog("bankcard:" + bankcard + "idcard:" + idcard + "name:" + name, "SysTools", "CheckThreeElementsDo");
|
|
|
var host = "https://bankcard3c.shumaidata.com";
|
|
|
var path = "/bankcard3c";
|
|
|
var method = "GET";
|
|
|
@@ -3847,6 +3875,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string CheckFourElementsDo(string bankcard, string idcard, string mobile, string name)
|
|
|
{
|
|
|
+ AddSysLog("bankcard:" + bankcard + "idcard:" + idcard + "name:" + name + "mobile:" + mobile, "SysTools", "CheckFourElementsDo");
|
|
|
var host = "https://bankcard4c.shumaidata.com";
|
|
|
var path = "/bankcard4c";
|
|
|
var method = "GET";
|
|
|
@@ -3942,6 +3971,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
public string SyncMerchantStatusDo(string PosSn)
|
|
|
{
|
|
|
|
|
|
+ AddSysLog("PosSn:" + PosSn, "SysTools", "SyncMerchantStatusDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具号";
|
|
|
@@ -3986,6 +4016,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string PosRewardReissuedDo(string PosSn)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn, "SysTools", "PosRewardReissuedDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
@@ -4043,6 +4074,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string SetPosFeeDo(string PosSn, int FeeType, int RecordFlag = 0)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn + "FeeType:" + FeeType + "RecordFlag:" + RecordFlag, "SysTools", "SetPosFeeDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
@@ -4116,6 +4148,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string RelationPosAndMerchantDo(string PosSn, string MerchantNo, string MerchantName)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn + "MerchantNo:" + MerchantNo + "MerchantName:" + MerchantName, "SysTools", "RelationPosAndMerchantDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
@@ -4165,6 +4198,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string SetMerchantInfoDo(string PosSn, string MerchantNo, string MerchantName, string MerIdcardNo, string MerchantMobile)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn + "MerchantNo:" + MerchantNo + "MerchantName:" + MerchantName + "MerIdcardNo:" + MerIdcardNo + "MerchantMobile:" + MerchantMobile, "SysTools", "SetMerchantInfoDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
@@ -4221,6 +4255,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string AuthMakerDo(string MakerCode, string RealName, string CertId, string BackCard, string BackName)
|
|
|
{
|
|
|
+ AddSysLog("MakerCode:" + MakerCode + "RealName:" + RealName + "CertId:" + CertId + "BackName:" + BackName, "SysTools", "AuthMakerDo");
|
|
|
if (string.IsNullOrEmpty(MakerCode))
|
|
|
{
|
|
|
return "请输入创客编号";
|
|
|
@@ -4347,6 +4382,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
public string TransferPosDo(string PosSn, string FromMakerCode, string ToMakerCode)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn + "FromMakerCode:" + FromMakerCode + "ToMakerCode:" + ToMakerCode, "SysTools", "TransferPosDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
@@ -4479,6 +4515,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string RestoreStatusDo(string OrderNo)
|
|
|
{
|
|
|
+ AddSysLog("OrderNo:" + OrderNo, "SysTools", "RestoreStatusDo");
|
|
|
if (string.IsNullOrEmpty(OrderNo))
|
|
|
{
|
|
|
return "请输入提现订单编号";
|
|
|
@@ -4520,6 +4557,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string SeeUserLoopDo(string MakerCode)
|
|
|
{
|
|
|
+ AddSysLog("MakerCode:" + MakerCode, "SysTools", "SeeUserLoopDo");
|
|
|
var userForMakerCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode) ?? new UserForMakerCode();
|
|
|
var user = db.Users.FirstOrDefault(m => m.Id == userForMakerCode.UserId) ?? new Users();
|
|
|
var pos = db.PosMachinesTwo.Where(m => m.Status > -1 && m.BuyUserId == user.Id).ToList();
|
|
|
@@ -4557,6 +4595,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
public string CashWithoutUserDo(string Content)
|
|
|
{
|
|
|
+ AddSysLog("Content:" + Content, "SysTools", "CashWithoutUserDo");
|
|
|
CustomTagSet set = db.CustomTagSet.FirstOrDefault(m => m.Tags == "CashWithoutUser");
|
|
|
if (set == null)
|
|
|
{
|
|
|
@@ -4588,6 +4627,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string BadPosToStoreDo(string OldSn)
|
|
|
{
|
|
|
+ AddSysLog("OldSn:" + OldSn, "SysTools", "BadPosToStoreDo");
|
|
|
string[] OldSnList;
|
|
|
OldSnList = OldSn.Replace("\r", "").Split('\n');
|
|
|
string error = "";
|
|
|
@@ -4672,6 +4712,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
public string TransferPosCouponDo(string Kind, string PosCouponCodes, string FromMakerCode, string ToMakerCode, string LeaderMakerCode = "")
|
|
|
{
|
|
|
+ AddSysLog("Kind:" + Kind + "PosCouponCodes:" + PosCouponCodes + "FromMakerCode:" + FromMakerCode + "ToMakerCode:" + ToMakerCode + "LeaderMakerCode:" + LeaderMakerCode, "SysTools", "TransferPosCouponDo");
|
|
|
if (string.IsNullOrEmpty(Kind))
|
|
|
{
|
|
|
return "请选择划拨的券类型";
|
|
|
@@ -4805,6 +4846,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string RefundPosFeeDo(string PosSn, string BackStoreNo, int IsBack = 0)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn + "BackStoreNo:" + BackStoreNo + "IsBack:" + IsBack, "SysTools", "RefundPosFeeDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
@@ -5076,6 +5118,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string AddMerchantnfoDo(string PosSn, string MerSn)
|
|
|
{
|
|
|
+ AddSysLog("PosSn+:" + PosSn + "MerSn:" + MerSn, "SysTools", "AddMerchantnfoDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具号";
|
|
|
@@ -5153,6 +5196,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string SeeMerchantTradeDetailDo(string PosSn)
|
|
|
{
|
|
|
+ AddSysLog("PosSn:" + PosSn, "SysTools", "SeeMerchantTradeDetailDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
@@ -5410,6 +5454,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string RestoreUserInfoDo(string MakerCode)
|
|
|
{
|
|
|
+ AddSysLog("MakerCode:" + MakerCode, "SysTools", "RestoreUserInfoDo");
|
|
|
var user = db.Users.FirstOrDefault(m => m.Status == -1 && m.MakerCode == MakerCode) ?? new Users();
|
|
|
if (user.Id == 0)
|
|
|
{
|
|
|
@@ -5459,6 +5504,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string QrCodeEncryptionDo(string SnNos)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "QrCodeEncryptionDo");
|
|
|
string[] SnNo = SnNos.Replace("\r", "").Replace("\n", ",").Split(',');
|
|
|
string code = "";
|
|
|
string sn = "";
|
|
|
@@ -5485,6 +5531,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string QrCodeDescryptionDo(string SnNos)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "QrCodeDescryptionDo");
|
|
|
string[] SnNo = SnNos.Replace("\r", "").Replace("\n", ",").Split(',');
|
|
|
string code = "";
|
|
|
string sn = "";
|
|
|
@@ -5519,6 +5566,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
public string SeeUserLevel4InfoDo(string MakerCode, string MakerCodes)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "SeeUserLevel4InfoDo");
|
|
|
var user = db.Users.FirstOrDefault(m => m.MakerCode == MakerCode) ?? new Users();
|
|
|
string[] SnNo = MakerCodes.Replace("\r", "").Replace("\n", ",").Split(',');
|
|
|
string code = "";
|
|
|
@@ -5551,6 +5599,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
#region 直营团队数据
|
|
|
public JsonResult Team1InfoDo(string MakerCode, string BindingTime, string ActivationTime, string PosFeeSelect, string BrandId, int page = 1, int limit = 30)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "Team1InfoDo");
|
|
|
string conn = Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString();
|
|
|
List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
|
|
|
string condition = " where 1=1";
|
|
|
@@ -5689,6 +5738,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
var FileName = MakerCode + RealName + "直营团队数据记录" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
string SendData = "{\"Operater\":\"" + sysAdmin.Id + "\",\"SqlString\":\"" + Sql + "\",\"FileName\":\"" + FileName + "\",\"MaxCount\":\"0\"}";
|
|
|
RedisDbconn.Instance.AddList("ExportQueue", SendData);
|
|
|
+ AddSysLog("0", "SysTools", "ExportTeam1InfoExcelDo");
|
|
|
return "success";
|
|
|
}
|
|
|
#endregion
|
|
|
@@ -5707,6 +5757,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
|
public string ChangePosFeeDo(string PosSn, string BrandId, string Deposit)
|
|
|
{
|
|
|
+ AddSysLog("0", "SysTools", "ChangePosFeeDo");
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|