fix: 更换银行模块源及修复钱钱小数

This commit is contained in:
chenchun
2024-06-13 15:56:58 +08:00
parent 14db420cbe
commit 5b109e91d1
4 changed files with 26 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ using Volo.Abp.DependencyInjection;
namespace Yi.Framework.Bbs.Domain.Managers.BankValue
{
[Dependency(TryRegister =true)]
public class BiyingBankValueProvider : IBankValueProvider, ITransientDependency
{
//官网地址www.biyingapi.com

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
namespace Yi.Framework.Bbs.Domain.Managers.BankValue
{
[Dependency(ReplaceServices = true)]
internal class RandownBankValueProvider : IBankValueProvider, ITransientDependency
{
public Task<decimal> GetValueAsync()
{
var currentNumber = new Random().Next(800, 1200);
return Task.FromResult((decimal)currentNumber);
}
}
}