Ejemplo n.º 1
0
        public string MyReply(DtoMyReply model)//(int pageindex, int pagesize, int isclosed, long userid)
        {
            SetJsonHeader();

            var content = GetPostParameters();
            //证书的路径
            var certification = GetCertificationFilePath();
            //证书的密码
            var certificationPwd = GetCertificationPwd();

            var result = HttpAsynchronousTool.CustomHttpWebRequestPost(GetCurrentUrl(this), content, certification, certificationPwd);

            return(result);
        }
Ejemplo n.º 2
0
        public string MyReply(DtoMyReply model)//(int pageindex, int pagesize, int isclosed, long userid)
        {
            //验证参数
            var validateRes = ValidateParamModel();

            if (validateRes != null)
            {
                return(JsonHelper.ToJsJson(validateRes));
            }

            SetJsonHeader();
            var content = GetPostParameters();

            //证书的路径
            var certification = GetCertificationFilePath();
            //证书的密码
            var certificationPwd = GetCertificationPwd();


            var result = HttpAsynchronousTool.CustomHttpWebRequestPost(GetCurrentUrl(this), content, certification, certificationPwd);

            return(result);
        }