Esempio n. 1
0
        /// <summary>
        /// 万通支付结果通知
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public WintopPayresInfo payres(WintopPayresParam param)
        {
            Dictionary <String, String> parameters = new Dictionary <String, String>();

            parameters.Add("authcode", param.authcode);
            parameters.Add("servicename", param.servicename);
            parameters.Add("trandateTime", param.trandateTime);
            parameters.Add("reqsn", param.reqsn);
            parameters.Add("loginId", param.loginId);
            parameters.Add("orderno", param.orderno);
            parameters.Add("realAmout", param.realAmout);
            parameters.Add("payCode", param.payCode);
            parameters.Add("trandeNo", param.trandeNo);
            parameters.Add("wtcardid", param.wtcardid);
            parameters.Add("wtuserid", param.wtuserid);
            parameters.Add("type", param.type);
            parameters.Add("terminal", param.terminalNo);
            parameters.Add("terminalno", param.terminalno);
            parameters.Add("operator", param.operators);
            parameters.Add("deptno", param.deptno);

            string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("WintopPayresName"), parameters, null);
            //反序列化JSON字符串,将JSON字符串转换成LIST列表
            WintopPayresInfo wintopPayresInfo = JsonConvert.DeserializeObject <WintopPayresInfo>(jsonText);

            return(wintopPayresInfo);
        }
Esempio n. 2
0
        public WintopMessage findHintSpec()//findHintSpec
        {
            Dictionary <String, String> parameters = new Dictionary <String, String>();

            parameters.Add("code", "TTTT");
            parameters.Add("serviceType", "4");
            string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("findHintSpec"), parameters, null);

            //反序列化JSON字符串,将JSON字符串转换成LIST列表
            return(JsonConvert.DeserializeObject <WintopMessage>(jsonText));
        }