|
@@ -979,6 +979,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
string[] PosSnList = PosSns.Split('\n');
|
|
string[] PosSnList = PosSns.Split('\n');
|
|
|
foreach(string PosSn in PosSnList)
|
|
foreach(string PosSn in PosSnList)
|
|
|
{
|
|
{
|
|
|
|
|
+ string NewPosSn = PosSn.Replace("\r", "");
|
|
|
string log = DateTime.Now.ToString() + "\n";
|
|
string log = DateTime.Now.ToString() + "\n";
|
|
|
log += "PosSn:" + PosSn + "\n";
|
|
log += "PosSn:" + PosSn + "\n";
|
|
|
log += "ActPrize:" + ActPrize + "\n";
|
|
log += "ActPrize:" + ActPrize + "\n";
|
|
@@ -988,7 +989,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
log += "OperterPrize:" + OperterPrize + "\n";
|
|
log += "OperterPrize:" + OperterPrize + "\n";
|
|
|
log += "\n\n";
|
|
log += "\n\n";
|
|
|
function.WriteLog(log, "补录日志");
|
|
function.WriteLog(log, "补录日志");
|
|
|
- PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == PosSn);
|
|
|
|
|
|
|
+ PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == NewPosSn);
|
|
|
if(pos == null)
|
|
if(pos == null)
|
|
|
{
|
|
{
|
|
|
return "SN不存在";
|
|
return "SN不存在";
|