コード例 #1
0
        public CertItem GetCertItem(IAopRequest <T> request, string responseBody)
        {
            if (string.IsNullOrEmpty(responseBody))
            {
                return(null);
            }

            CertItem certItem = new CertItem();

            IDictionary json = JsonConvert.DeserializeObject <IDictionary>(responseBody);

            string sign = (string)json["sign"];

            certItem.Sign = sign;

            string certSN = (string)json["alipay_cert_sn"];

            certItem.CertSN = certSN;

            string signSourceData = GetSignSourceData(request, responseBody);

            certItem.SignSourceDate = signSourceData;

            return(certItem);
        }
コード例 #2
0
        public CertItem GetCertItem(IAopRequest <T> request, string reponseBody)
        {
            if (string.IsNullOrEmpty(reponseBody))
            {
                return(null);
            }

            CertItem certItem = new CertItem();
            string   sign     = GetSign(reponseBody);

            certItem.Sign = sign;

            string signSourceData = GetSignSourceData(request, reponseBody);

            certItem.SignSourceDate = signSourceData;

            string certSN = GetCertSN(reponseBody);

            certItem.CertSN = certSN;

            return(certItem);
        }