/// <summary>
        /// 事件证书-扫码签章接口
        /// </summary>
        /// <param name="signScanContractRequest"></param>
        /// <returns></returns>
        public EventCertSignScanContractResponse eventCertScanSign(SignScanContractRequest signScanContractRequest)
        {
            SignRequest signRequest = new SignRequest(signScanContractRequest);

            signRequest.apiUrl = ApiUrlConstant.Sign.EventCertScanSign;
            EventCertSignScanContractResponse response = this.Send <EventCertSignScanContractResponse>(signRequest);

            return(response);
        }
Esempio n. 2
0
 /// <summary>
 /// 事件证书-扫码签章
 /// </summary>
 public void eventCertScanSign()
 {
     try
     {
         EventCertSignScanContractResponse signScanContractResponse = client.EventCertSign.eventCertScanSign(new SignScanContractRequest("419aac08f35245b597002c1b8eae2745"));
         Console.WriteLine("事件证书-扫码签章-响应数据:" + JSONUtil.getJsonStringFromObject(signScanContractResponse));
     }
     catch (SignApplicationException sae)
     {
         // 捕获网关校验数据
         Console.WriteLine("事件证书-扫码签章-网关异常状态码为:" + sae.return_code);
         Console.WriteLine("事件证书-扫码签章-网关异常信息为:" + sae.return_message);
     }
     catch (SignServerException sse)
     {
         // 捕获网关校验数据
         Console.WriteLine("事件证书-扫码签章-业务异常状态码为:" + sse.result_code);
         Console.WriteLine("事件证书-扫码签章-业务异常信息为:" + sse.result_message);
     }
 }