LifePayment/LifePayment.Application.Contracts/LifePay/ILifePayService.cs
@@ -287,7 +287,7 @@ Task<AlipayTradeFastpayRefundQueryResponse> QueryAlipayTradeRefund(OrderInQuiryInput input); /// <summary> /// 查询微信支付订单信息 /// 查询微信退款订单信息 /// </summary> /// <param name="outTradeNo"></param> /// <returns></returns> LifePayment/LifePayment.Application.Contracts/User/IAccountService.cs
@@ -21,6 +21,14 @@ /// <exception cref="UserFriendlyException"></exception> Task<LifePayPhoneMesssageCodeLoginOutput> LifePayPhoneMesssageCodeLogin(LifePayPhoneMesssageCodeLoginInput input); /// <summary> /// 根据用户ID获取用户是否为后台管理员 /// </summary> /// <param name="id"></param> /// <returns></returns> Task<LifePayPhoneMesssageCodeLoginOutput> LifePayUserMesssageByIduser(Guid id); Task<IdentityModelTokenCacheItem> GetTokenForWeb(AccessRequestDto accessRequestDto, string webClientIp); Task<Guid> CreateAccount(CreateAccountInput input, bool isSend = false, bool isAdminCreate = false); LifePayment/LifePayment.Application.Contracts/User/QrCodeLogin.cs
@@ -19,6 +19,15 @@ public string PhoneNumber { get; set; } } public class LifePayUserMesssageByIduserInput : ChannelsBaseInput { /// <summary> /// 用户编号 /// </summary> [DisplayName("用户编号")] public Guid Id { get; set; } } public class WxMiniAppIndentityInfo { /// <summary> LifePayment/LifePayment.Application/User/AccountService.cs
@@ -16,6 +16,7 @@ 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; @@ -143,6 +144,31 @@ 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 LifePayment/LifePayment.Domain.Shared/LifePaymentConstant.cs
@@ -53,11 +53,11 @@ public const string PayTransactionsH5 = "/v3/pay/transactions/h5"; public const string WxPayTradeQyery = "/v3/pay/transactions/out-trade-no/{out_trade_no}"; public const string WxPayTradeQyery = "/v3/pay/transactions/out-trade-no/{0}"; public const string WxPayDomesticRefunds = "/v3/refund/domestic/refunds"; public const string WxPayDomesticRefundsQuery = "/v3/refund/domestic/refunds/{out_refund_no}"; public const string WxPayDomesticRefundsQuery = "/v3/refund/domestic/refunds/{0}"; public const string WxPayTradeBillApply = "/v3/fund-app/mch-transfer/elecsign/out-bill-no"; LifePayment/LifePayment.Host/LifePaymentService.HttpApi.xml
@@ -19,6 +19,13 @@ <returns></returns> <exception cref="T:Volo.Abp.UserFriendlyException"></exception> </member> <member name="M:LifePayment.HttpApi.AccountController.LifePayUserMesssageByIduser(LifePayment.Application.Contracts.LifePayUserMesssageByIduserInput)"> <summary> 根据用户ID获取用户是否为后台管理员 </summary> <param name="input"></param> <returns></returns> </member> <member name="M:LifePayment.HttpApi.ACOOLYNotifyController.ACOOLYNotify"> <summary> ACOOLY回调通知 LifePayment/LifePayment.Host/LifePaymentServices.Application.Contracts.xml
@@ -248,7 +248,7 @@ </member> <member name="M:LifePayment.Application.Contracts.ILifePayService.WxPayDomesticRefundsQuery(System.String)"> <summary> 查询微信支付订单信息 查询微信退款订单信息 </summary> <param name="outTradeNo"></param> <returns></returns> @@ -1624,6 +1624,21 @@ 记账时间 </summary> </member> <member name="P:LifePayment.Application.Contracts.LifePayPhoneMesssageCodeLoginOutput.UserId"> <summary> 用户Id </summary> </member> <member name="P:LifePayment.Application.Contracts.LifePayPhoneMesssageCodeLoginOutput.IsBackClientUser"> <summary> 是否是后台用户 </summary> </member> <member name="P:LifePayment.Application.Contracts.LifePayPhoneMesssageCodeLoginOutput.ChannlesNum"> <summary> 渠道号 </summary> </member> <member name="P:LifePayment.Application.Contracts.RecordOperateHistoryEto.RelationId"> <summary> 关联关系ID @@ -2458,6 +2473,13 @@ <returns></returns> <exception cref="T:Volo.Abp.UserFriendlyException"></exception> </member> <member name="M:LifePayment.Application.Contracts.IAccountService.LifePayUserMesssageByIduser(System.Guid)"> <summary> 根据用户ID获取用户是否为后台管理员 </summary> <param name="id"></param> <returns></returns> </member> <member name="M:LifePayment.Application.Contracts.IUserRoleService.ResetPassword(LifePayment.Application.Contracts.ResetPasswordBaseInput)"> <summary> 重置密码 @@ -2470,6 +2492,11 @@ 手机号 </summary> </member> <member name="P:LifePayment.Application.Contracts.LifePayUserMesssageByIduserInput.Id"> <summary> 用户编号 </summary> </member> <member name="P:LifePayment.Application.Contracts.WxMiniAppIndentityInfo.SessionKey"> <summary> 会话密钥 LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs
@@ -65,6 +65,19 @@ return await _accountService.LifePayPhoneMesssageCodeLogin(input); } /// <summary> /// 根据用户ID获取用户是否为后台管理员 /// </summary> /// <param name="input"></param> /// <returns></returns> [HttpPost] [AllowAnonymous] [ChannelFilter] public async Task<LifePayPhoneMesssageCodeLoginOutput> LifePayUserMesssageByIduser(LifePayUserMesssageByIduserInput input) { return await _accountService.LifePayUserMesssageByIduser(input.Id); } [HttpPost] public OssSTSReponse GetOssSTS() {