DTcms.API/DTcms.API.Payment.tenpaypc/ResponseHandler.cs

(开头部分) 3KB

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

using System;
using System.Collections;
using System.Collections.Specialized;
using System.Text;
using System.Web;

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

		protected System.Collections.Hashtable parameters;

		private string debugInfo;

		protected HttpContext httpContext;

		public ResponseHandler(HttpContext httpContext)
		{
			this.parameters = new System.Collections.Hashtable();
			this.httpContext = httpContext;
			System.Collections.Specialized.NameValueCollection collection;
			if (this.httpContext.Request.HttpMethod == "POST")
			{
				collection = this.httpContext.Request.Form;
			}
			else
			{
				collection = this.httpContext.Request.QueryString;
			}
			foreach (string i in collection)
			{
				string v = collection[i];
				this.setParameter(i, v);
			}
		}

		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)
		{
			if (parameter != null && parameter != "")
			{
				if (this.parameters.Contains(parameter))
				{
后面还有 65 行代码,购买后查看完整代码

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

AI 解读 AI

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

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