DTcms.API/DTcms.API.Payment.tenpaypc/ClientResponseHandler.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Text;
using System.Xml;

namespace DTcms.API.Payment.tenpaypc
{
	public class ClientResponseHandler
	{
		private string key;

		protected System.Collections.Hashtable parameters;

		private string debugInfo;

		protected string content;

		private string charset = "gb2312";

		public ClientResponseHandler()
		{
			this.parameters = new System.Collections.Hashtable();
		}

		public string getContent()
		{
			return this.content;
		}

		public virtual void setContent(string content)
		{
			this.content = content;
			XmlDocument xmlDoc = new XmlDocument();
			xmlDoc.LoadXml(content);
			XmlNode root = xmlDoc.SelectSingleNode("root");
			XmlNodeList xnl = root.ChildNodes;
			foreach (XmlNode xnf in xnl)
			{
				this.setParameter(xnf.Name, xnf.InnerXml);
			}
		}

		public string getKey()
		{
			return this.key;
		}

		public void setKey(string key)
		{
			this.key = key;
		}

		public string getParameter(string parameter)
		{
			string s = (string)this.parameters[parameter];
			return (s == null) ? "" : s;
		}

		public void setParameter(string parameter, string parameterValue)
		{
后面还有 67 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。