/// <summary> /// 会签接口 /// </summary> /// <param name="signMeetingSingleRequest"></param> /// <returns></returns> public SignMeetingSingleResponse meetingSingle(SignMeetingSingleRequest signMeetingSingleRequest) { SignRequest signRequest = new SignRequest(signMeetingSingleRequest); signRequest.apiUrl = ApiUrlConstant.Sign.MeetingSingle; SignMeetingSingleResponse response = this.Send <SignMeetingSingleResponse>(signRequest); return(response); }
/// <summary> /// 会签签章 /// </summary> public void meetingSingle() { SignMeetingSingleRequest signMeetingSingleRequest = new SignMeetingSingleRequest(); signMeetingSingleRequest.contract_id = "789c8146f45f9a219a5d5ad11db2902c"; SignDetails sign = new SignDetails(); sign.page_num = 1; sign.seal_id = "babeef37549d22cbb50ce5436cdb3037"; sign.user_id = "00765245060136194048"; sign.sign_height = 40; sign.sign_width = 50; sign.sign_top = 10; sign.sign_left = 20; signMeetingSingleRequest.addSignDetails(sign); try { SignMeetingSingleResponse response = client.SignOperate.meetingSingle(signMeetingSingleRequest); Console.WriteLine("会签签章-响应数据:" + JSONUtil.getJsonStringFromObject(response)); } 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); } }