//peer //[Authorize] //加入通道 public override async Task <TxResponse> JoinChannel(TxHeader request, ServerCallContext context) { try { var model = Newtonsoft.Json.JsonConvert.DeserializeObject <QMBlockSDK.TX.TxHeader>(request.Data); var rs = await _txService.JoinChannel(model); return(new TxResponse() { Data = Newtonsoft.Json.JsonConvert.SerializeObject(rs) }); } catch (Exception ex) { _logger.LogError(ex, ex.Message); var rs = new QMBlockSDK.TX.TxResponse(); rs.Msg = ex.Message; rs.Status = false; return(new TxResponse() { Data = Newtonsoft.Json.JsonConvert.SerializeObject(rs) }); } }
//peer //[Authorize] //加入通道 public async Task <JsonResult> JoinChannel(TxHeader request) { var rs = await _txService.JoinChannel(request); return(new JsonResult(rs)); }