|
|
@ -203,9 +203,17 @@ namespace GDZZ.Application.Service.WXPay
|
|
|
|
var balan = await this.balance.AsQueryable().Filter("TenantId", true).Where(x => x.UserID == paytake.CreatedUserId).SingleAsync();
|
|
|
|
var balan = await this.balance.AsQueryable().Filter("TenantId", true).Where(x => x.UserID == paytake.CreatedUserId).SingleAsync();
|
|
|
|
if (!balan.IsEmpty())
|
|
|
|
if (!balan.IsEmpty())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
balan.Amount += recharge.PaymentMoney;
|
|
|
|
balan.Amount = recharge.PaymentMoney;
|
|
|
|
this.balance.Update(balan);
|
|
|
|
this.balance.Update(balan);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.balance.Insert(new Balance()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Amount = recharge.PaymentMoney,
|
|
|
|
|
|
|
|
UserID = (long)paytake.CreatedUserId
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|