Exemplo n.º 1
0
        /// <summary>
        /// 获取证书结构
        /// </summary>
        /// <returns></returns>
        public static data_certificates Get()
        {
            string            Authorization = Get(Lib.Config.Serial_no);
            data_certificates dc            = JsonMapper.ToObject <data_certificates>(Authorization);

            return(dc);
        }
Exemplo n.º 2
0
        public static data_certificates Dc()
        {
            string            file          = "D:\\Desktop\\wxpay_xiaowei\\new.json";
            string            Authorization = System.IO.File.ReadAllText(file);
            data_certificates dc            = JsonMapper.ToObject <data_certificates>(Authorization);

            return(dc);
        }