private void ExchangeSilver2Coin()
        {
            var success = _liveDomainService.ExchangeSilver2Coin();

            if (!success)
            {
                return;
            }

            //如果兑换成功,则打印硬币余额
            var coinBalance = _coinDomainService.GetCoinBalance();

            _logger.LogInformation("当前硬币余额: {0}", coinBalance);
        }
Exemplo n.º 2
0
 private decimal ExchangeSilver2Coin()
 {
     return(_liveDomainService.ExchangeSilver2Coin());
 }