private int FiiiExCoinOut(Guid openId, string coinCode, decimal amount, out string recordId) { LogHelper.Info($"FiiiExCoinOut: openId={openId}, coinCode={coinCode}, amount={amount}"); int result = new TransferCoinSoapClient().CoinOut(openId.ToString(), coinCode, amount, out recordId); LogHelper.Info($"FiiiExCoinOut: result={result}, recordId={recordId}"); return(result); }
private decimal FiiiExBalance(FiiiType fiiiType, Guid accountId, Cryptocurrency crypto) { var openAccountDac = new OpenAccountDAC(); var data = openAccountDac.GetOpenAccount(fiiiType, accountId); if (data == null) { return(0M); } LogHelper.Info($"GetFiiiExUserCoin: openId={data.OpenId}, coinCode={crypto.Code}"); int result = new TransferCoinSoapClient().GetUserCoin(data.OpenId.ToString(), crypto.Code, out decimal amount); LogHelper.Info($"GetFiiiExUserCoin: result={result}, amount={amount}"); return(amount); }