Fixed Logging of gems/coins for support staff.

This commit is contained in:
Jonathan Williams 2015-08-23 15:47:41 -07:00
parent fec8398608
commit 8ca2b8537c
2 changed files with 18 additions and 30 deletions

View File

@ -277,19 +277,6 @@
token.OriginalBalance = account.Gems;
account.Gems += token.Amount;
if (!token.Source.Contains("Earned") && !token.Source.Contains("Tutorial") && !token.Source.Contains("Parkour"))
{
var gemTransaction = new GemTransaction
{
Source = token.Source,
Account = account,
Amount = token.Amount,
Date = (long)TimeUtil.GetCurrentMilliseconds()
};
repository.Add<GemTransaction>(gemTransaction);
}
repository.Edit(account);
repository.CommitChanges();
}
@ -323,19 +310,6 @@
token.OriginalBalance = account.Coins;
account.Coins += token.Amount;
if (!token.Source.Contains("Earned") && !token.Source.Contains("Tutorial") && !token.Source.Contains("Parkour"))
{
var coinTransaction = new CoinTransaction
{
Source = token.Source,
Account = account,
Amount = token.Amount,
Date = (long)TimeUtil.GetCurrentMilliseconds()
};
repository.Add<CoinTransaction>(coinTransaction);
}
repository.Edit(account);
repository.CommitChanges();
}
@ -349,6 +323,20 @@
if (account.Coins != token.OriginalBalance + token.Amount)
return false;
if (!token.Source.Contains("Earned") && !token.Source.Contains("Tutorial") && !token.Source.Contains("Parkour"))
{
var coinTransaction = new CoinTransaction
{
Source = token.Source,
Account = account,
Amount = token.Amount,
Date = (long)TimeUtil.GetCurrentMilliseconds()
};
repository.Add<CoinTransaction>(coinTransaction);
repository.CommitChanges();
}
}
}

View File

@ -598,7 +598,7 @@
<file relUrl="Content/Images/Double.png" publishTime="11/02/2013 10:30:01" />
<file relUrl="Views/Account/LogOn.cshtml" publishTime="11/02/2013 10:30:01" />
<file relUrl="Content/Images/Wiki/Ranger.png" publishTime="11/02/2013 10:30:01" />
<file relUrl="bin/LOC.Website.Common.pdb" publishTime="08/16/2015 04:12:28" />
<file relUrl="bin/LOC.Website.Common.pdb" publishTime="08/21/2015 22:21:14" />
<file relUrl="bin/LOC.Core.pdb" publishTime="08/15/2015 06:23:13" />
<file relUrl="Content/Images/Wiki/red_dye.jpg" publishTime="11/02/2013 10:30:01" />
<file relUrl="Scripts/MicrosoftMvcValidation.js" publishTime="11/02/2013 10:30:01" />
@ -653,9 +653,9 @@
<file relUrl="Views/Store/_WritePackage.cshtml" publishTime="11/02/2013 10:30:01" />
<file relUrl="Content/css/bootstrap-responsive.min.css" publishTime="11/02/2013 10:30:01" />
<file relUrl="Views/Servers/Index.cshtml" publishTime="11/02/2013 10:30:01" />
<file relUrl="bin/LOC.Website.Web.dll" publishTime="08/16/2015 04:12:28" />
<file relUrl="bin/LOC.Website.Web.dll" publishTime="08/21/2015 22:21:15" />
<file relUrl="Views/Shared/_FrontLayout.cshtml" publishTime="11/02/2013 10:30:01" />
<file relUrl="bin/LOC.Website.Web.pdb" publishTime="08/16/2015 04:12:28" />
<file relUrl="bin/LOC.Website.Web.pdb" publishTime="08/21/2015 22:21:15" />
<file relUrl="Content/themes/base/images/ui-bg_glass_65_ffffff_1x400.png" publishTime="11/02/2013 10:30:01" />
<file relUrl="Views/Profile/Index.cshtml" publishTime="11/02/2013 10:30:01" />
<file relUrl="bin/WebMatrix.WebData.xml" publishTime="11/02/2013 10:30:01" />
@ -692,7 +692,7 @@
<file relUrl="Areas/Manage/Views/Accounts/_CreateOrEdit.cshtml" publishTime="11/02/2013 10:30:01" />
<file relUrl="Areas/Manage/Views/Log/Index.cshtml" publishTime="11/02/2013 10:30:01" />
<file relUrl="Scripts/ddsmoothmenu.js" publishTime="11/02/2013 10:30:01" />
<file relUrl="bin/LOC.Website.Common.dll" publishTime="08/16/2015 04:12:28" />
<file relUrl="bin/LOC.Website.Common.dll" publishTime="08/21/2015 22:21:15" />
<file relUrl="bin/LOC.Core.dll" publishTime="08/15/2015 06:23:13" />
<file relUrl="Content/themes/base/images/ui-icons_888888_256x240.png" publishTime="11/02/2013 10:30:01" />
<file relUrl="Content/Images/Bosses.png" publishTime="11/02/2013 10:30:01" />