feat tickets
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Dlhis.Canteen.Order.Repository;
|
||||
using Dlhis.Canteen.Setting.Response;
|
||||
using Dlhis.Constants;
|
||||
using Dlhis.Entity.Canteen.Entities;
|
||||
using Kurisu.AspNetCore.Authentication.Abstractions;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Services;
|
||||
@@ -37,7 +38,7 @@ public class WalletService : IWalletService
|
||||
/// <inheritdoc />
|
||||
public async Task<decimal> GetBalanceAsync(string walletCode)
|
||||
{
|
||||
var userCode = _currentUser.GetUserClaim("jinko-code");
|
||||
var userCode = _currentUser.GetUserClaim(UserClaimConstants.JinkoCode);
|
||||
|
||||
if (!await _dbContext.Queryable<UserBalanceEntity>().Where(x => x.UserCode == userCode).AnyAsync())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user