MxWeiXinPF.API/Payment/wxpay/ResponseHandler.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using MxWeiXinPF.API.Payment.wxpay.comm;
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Text;
using System.Web;
using System.Xml;
namespace MxWeiXinPF.API.Payment.wxpay
{
/**
'============================================================================
'api说明:
'getKey()/setKey(),获取/设置密钥
'getParameter()/setParameter(),获取/设置参数值
'getAllParameters(),获取所有参数
'isTenpaySign(),是否正确的签名,true:是 false:否
'isWXsign(),是否正确的签名,true:是 false:否
' * isWXsignfeedback判断微信维权签名
' *getDebugInfo(),获取debug信息
'============================================================================
*/
public class ResponseHandler
{
// 密钥
private string key;
// appkey
private string appkey;
//xmlMap
private Hashtable xmlMap;
// 应答的参数
protected Hashtable parameters;
//debug信息
private string debugInfo;
//原始内容
protected string content;
private string charset = "UTF-8";
//参与签名的参数列表
private static string SignField = "appid,appkey,timestamp,openid,noncestr,issubscribe";
protected HttpContext httpContext;
//初始化函数
public virtual void init()
{
}
//获取页面提交的get和post参数
public ResponseHandler(HttpContext httpContext)
{
parameters = new Hashtable();
xmlMap = new Hashtable();
后面还有 201 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
