コード例 #1
0
ファイル: HeatAccess.cs プロジェクト: luzhengning/wtPay
        /// <summary>
        /// 支付结果通知
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public static HeatPayresInfo HeatPayres(HeatPayresParam param)
        {
            HeatInterface access = new HeatInterface();

            param.authcode     = SysBLL.Authcode;
            param.servicename  = "DD004";
            param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime();
            param.reqsn        = SysBLL.getSerialNum();
            param.loginId      = SysBLL.getCpuNo();
            //param.orderno = "";
            //param.realAmout = "";
            //param.payCode = "";
            //param.trandeNo = "";
            HeatPayresInfo info = access.HeatPayres(param);

            return(info);
        }
コード例 #2
0
        /// <summary>
        /// 支付结果通知
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public HeatPayresInfo HeatPayres(HeatPayresParam param)
        {
            HeatPayresInfo heatPayresInfo          = null;
            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("orderno", param.orderno);
            parameters.Add("realAmout", param.realAmout);
            parameters.Add("trandeNo", param.trandeNo);
            parameters.Add("loginId", param.loginId);
            parameters.Add("payCode", param.payCode);
            parameters.Add("terminalNo", param.terminalNo);

            string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("HeatPayresName"), parameters, null);

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