fix 调整无授权处理,增加检查设备是否存在接口

This commit is contained in:
2024-01-08 11:36:10 +08:00
parent 2e300811d5
commit b341a59359
6 changed files with 46 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ public class MealUserService : IMealUserService
//todo 获取档案信息
var gainfoEntity = await _gainfoStore.Queryable(GainfoStatusEnumType.Working)
.Where(x => x.Guestno.ToString() == request.UserId)
.Where(x => x.No.ToString() == request.UserId)
.FirstAsync();
gainfoEntity.ThrowIfNull($"档案[{request.UserId}]不存在");
@@ -44,7 +44,7 @@ public class MealUserService : IMealUserService
{
UserId = request.UserId,
UserType = request.UserType,
UserCode = gainfoEntity.Ename,
UserCode = gainfoEntity.Code,
CarNo = gainfoEntity.CarNo,
Balance = 0,
BalanceOfRecharge = 0,