|
@@ -422,13 +422,8 @@ namespace MySystem
|
|
|
/// <param name="UserId"></param>
|
|
|
/// <param name="Money"></param>
|
|
|
/// <param name="Count"></param>
|
|
|
- public void OpAccount(WebCMSEntities db, int OrderId, int UserId, decimal Money, int Count = 1, int ChangeType = 0)
|
|
|
+ public void OpAccount(WebCMSEntities db, int OrderId, int UserId, decimal Money, int Count = 1, int ChangeType = 0, int Kind = 0)
|
|
|
{
|
|
|
- int Kind = 0;
|
|
|
- if(ChangeType == 128)
|
|
|
- {
|
|
|
- Kind = 101;
|
|
|
- }
|
|
|
UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == UserId);
|
|
|
if (account == null)
|
|
|
{
|