| | |
| | | using Volo.Abp.Identity; |
| | | using Volo.Abp.Identity.Application.Contracts.Account; |
| | | using Volo.Abp.IdentityModel; |
| | | using Volo.Abp.Threading; |
| | | using ZeroD.Util; |
| | | using ZeroD.Util.Fadd; |
| | | using static LifePayment.Domain.Shared.LifePaymentConstant; |
| | |
| | | return result; |
| | | } |
| | | |
| | | public async Task<LifePayPhoneMesssageCodeLoginOutput> LifePayUserMesssageByIduser(Guid id) |
| | | { |
| | | string[] channlesNum = new string[0]; |
| | | var lifeUser = await _lifePayUserRepository.Where(x => x.Id == id).FirstOrDefaultAsync(); |
| | | CheckExtensions.IfTrueThrowUserFriendlyException(lifeUser == null, |
| | | "用户不存在"); |
| | | var backClientUser = await _userRepository.Where(x => x.ClientId == Constant.ClientType.Back |
| | | && x.PhoneNumber == lifeUser.PhoneNumber).FirstOrDefaultAsync(); |
| | | if (backClientUser != null) |
| | | { |
| | | channlesNum = await _userChannleRep.Where(x => x.UserId == backClientUser.Id).Select(s => s.ChannleId).ToArrayAsync(); |
| | | } |
| | | |
| | | LifePayPhoneMesssageCodeLoginOutput result = new LifePayPhoneMesssageCodeLoginOutput() |
| | | { |
| | | UserId = id, |
| | | IsBackClientUser = backClientUser == null ? false : true, |
| | | ChannlesNum = channlesNum |
| | | }; |
| | | |
| | | |
| | | return result; |
| | | } |
| | | |
| | | |
| | | public async Task<IdentityModelTokenCacheItem> GetTokenForWeb(AccessRequestDto accessRequestDto, string webClientIp) |
| | | { |
| | | IdentityClientConfiguration config = new IdentityClientConfiguration |