DTcms.API/DTcms.API.Payment.tenpaypc/RequestHandler.cs

(开头部分) 3KB

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

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

namespace DTcms.API.Payment.tenpaypc
{
	public class RequestHandler
	{
		private string gateUrl;

		private string key;

		protected System.Collections.Hashtable parameters;

		private string debugInfo;

		protected HttpContext httpContext;

		public RequestHandler(HttpContext httpContext)
		{
			this.parameters = new System.Collections.Hashtable();
			this.httpContext = httpContext;
			this.setGateUrl("https://www.tenpay.com/cgi-bin/v1.0/service_gate.cgi");
		}

		public virtual void init()
		{
		}

		public string getGateUrl()
		{
			return this.gateUrl;
		}

		public void setGateUrl(string gateUrl)
		{
			this.gateUrl = gateUrl;
		}

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

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

		public virtual string getRequestURL()
		{
			this.createSign();
			System.Text.StringBuilder sb = new System.Text.StringBuilder();
			System.Collections.ArrayList akeys = new System.Collections.ArrayList(this.parameters.Keys);
			akeys.Sort();
			foreach (string i in akeys)
			{
				string v = (string)this.parameters[i];
				if (v != null && "key".CompareTo(i) != 0)
后面还有 74 行代码,购买后查看完整代码

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

AI 解读 AI

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

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