|
@@ -155,7 +155,7 @@ namespace MySystem
|
|
if(PosCouponPrizeService.Instance.CheckOpReserve(opdb, groupCount, parentUser.Id))
|
|
if(PosCouponPrizeService.Instance.CheckOpReserve(opdb, groupCount, parentUser.Id))
|
|
{
|
|
{
|
|
//购机奖
|
|
//购机奖
|
|
- decimal CurBuyPrize = GetBuyPrize(parentUser);
|
|
|
|
|
|
+ decimal CurBuyPrize = GetBuyPrize(parentUser, query.UserId);
|
|
decimal GetPrize = CurBuyPrize - BuyPrize;
|
|
decimal GetPrize = CurBuyPrize - BuyPrize;
|
|
int Kind = 0;
|
|
int Kind = 0;
|
|
if(query.Remark == "兑换机具券")
|
|
if(query.Remark == "兑换机具券")
|
|
@@ -211,7 +211,7 @@ namespace MySystem
|
|
if(PosCouponPrizeService.Instance.CheckOpReserve(opdb, groupCount, parentUser.Id))
|
|
if(PosCouponPrizeService.Instance.CheckOpReserve(opdb, groupCount, parentUser.Id))
|
|
{
|
|
{
|
|
//购机奖
|
|
//购机奖
|
|
- decimal CurBuyPrize = GetBuyPrize(parentUser);
|
|
|
|
|
|
+ decimal CurBuyPrize = GetBuyPrize(parentUser, query.UserId);
|
|
decimal GetPrize = CurBuyPrize - BuyPrize;
|
|
decimal GetPrize = CurBuyPrize - BuyPrize;
|
|
int Kind = 0;
|
|
int Kind = 0;
|
|
if(query.Remark == "兑换机具券")
|
|
if(query.Remark == "兑换机具券")
|
|
@@ -236,11 +236,11 @@ namespace MySystem
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <param name="user"></param>
|
|
/// <param name="user"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
- public decimal GetBuyPrize(UserRankItem user)
|
|
|
|
|
|
+ public decimal GetBuyPrize(UserRankItem user, int UserId = 0)
|
|
{
|
|
{
|
|
if(user.OperateLevel == 2)
|
|
if(user.OperateLevel == 2)
|
|
{
|
|
{
|
|
- if(!PosCouponPrizeService.Instance.TradeTeamCheck(user.Id))
|
|
|
|
|
|
+ if(!PosCouponPrizeService.Instance.TradeTeamCheck(UserId))
|
|
{
|
|
{
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|