WmptWeixin/RequestHandler.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Text;
using System.Web;
using System.Xml;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using WMPT.Common;
namespace WMPT.Weixin
{
/**
'签名工具类
============================================================================/// <summary>
'api说明:
'init();
'初始化函数,默认给一些参数赋值。
'setKey(key_)'设置商户密钥
'createMd5Sign(signParams);字典生成Md5签名
'genPackage(packageParams);获取package包
'createSHA1Sign(signParams);创建签名SHA1
'parseXML();输出xml
'getDebugInfo(),获取debug信息
*
* ============================================================================
*/
public class RequestHandler
{
public RequestHandler(HttpContext httpContext)
{
parameters = new Hashtable();
this.httpContext = httpContext;
}
// 密钥
private string key = "";
protected HttpContext httpContext;
/** 请求的参数 */
protected Hashtable parameters;
/** debug信息 */
private string debugInfo;
/** 初始化函数 */
public virtual void init()
{
}
/** 获取debug信息 */
public String getDebugInfo()
{
return debugInfo;
}
/** 获取密钥 */
public String getKey()
{
后面还有 181 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
