| | |
| | | } |
| | | } |
| | | |
| | | if (entity.AccountBookStatus == EnumEnterpriseWalletAccountBookStatus.Normal) |
| | | { |
| | | var response = alipayUtils.FundAccountbookQuery(new AlipayFundAccountbookQueryModel |
| | | { |
| | | AccountBookId = entity.AccountBookId, |
| | | SceneCode = "SATF_FUND_BOOK", |
| | | MerchantUserId = entity.Code, |
| | | }); |
| | | if (response.IsError) throw Oops.Oh(EnumErrorCodeType.s510, response.SubMsg ?? response.Msg); |
| | | entity.Balance = response.AvailableAmount.ToDecimal() ?? 0; |
| | | update = true; |
| | | } |
| | | } |
| | | |
| | | if (update) |
| | |
| | | else |
| | | { |
| | | model.ExpandindirectOrderStatus = EnumEnterpriseWalletExpandindirectOrderStatus.Wait; |
| | | } |
| | | |
| | | if (entity.AccountBookStatus == EnumEnterpriseWalletAccountBookStatus.Normal) |
| | | { |
| | | var response = alipayUtils.FundAccountbookQuery(new AlipayFundAccountbookQueryModel |
| | | { |
| | | AccountBookId = entity.AccountBookId, |
| | | SceneCode = "SATF_FUND_BOOK", |
| | | MerchantUserId = entity.Code, |
| | | ExtInfo = new |
| | | { |
| | | agreement_no = entity.AgreementNo |
| | | }.ToJson() |
| | | }); |
| | | if (response.IsError) throw Oops.Oh(EnumErrorCodeType.s510, response.SubMsg ?? response.Msg); |
| | | entity.Balance = response.AvailableAmount.ToDecimal() ?? 0; |
| | | await rep.UpdateNowAsync(entity); |
| | | } |
| | | |
| | | return model; |
| | |
| | | AccountBookId = entity.AccountBookId, |
| | | SceneCode = "SATF_FUND_BOOK", |
| | | MerchantUserId = entity.Code, |
| | | ExtInfo = new |
| | | { |
| | | agreement_no = entity.AgreementNo |
| | | }.ToJson() |
| | | }); |
| | | if (response.IsError) throw Oops.Oh(EnumErrorCodeType.s510, response.SubMsg ?? response.Msg); |
| | | entity.Balance = response.AvailableAmount.ToDecimal() ?? 0; |