修改问题
This commit is contained in:
parent
2e4c44d3f0
commit
9f11aeaf1d
|
|
@ -89,7 +89,7 @@ namespace CloudGaming.Code.Account
|
||||||
int userId = user.Id;
|
int userId = user.Id;
|
||||||
return await UserConsumeDiamondMoneyAsync(dao, userId, userCurrencyType, money, title, orderId, _currency);
|
return await UserConsumeDiamondMoneyAsync(dao, userId, userCurrencyType, money, title, orderId, _currency);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 扣除当前用户钻石
|
/// 扣除当前用户钻石
|
||||||
|
|
@ -294,11 +294,12 @@ namespace CloudGaming.Code.Account
|
||||||
Extend = gameXiaoHao,
|
Extend = gameXiaoHao,
|
||||||
};
|
};
|
||||||
await cloudGamingBase.Dao.DaoUser.Context.AddAsync(userDiamondList);
|
await cloudGamingBase.Dao.DaoUser.Context.AddAsync(userDiamondList);
|
||||||
diamondListId = userDiamondList.Id;
|
|
||||||
}
|
}
|
||||||
userDiamondList.Consume += money;
|
userDiamondList.Consume += Math.Abs(money);
|
||||||
userDiamondList.UpdateAt = DateTime.Now;
|
userDiamondList.UpdateAt = DateTime.Now;
|
||||||
await cloudGamingBase.Dao.DaoUser.Context.SaveChangesAsync();
|
await cloudGamingBase.Dao.DaoUser.Context.SaveChangesAsync();
|
||||||
|
diamondListId = userDiamondList.Id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user