C# Class Senparc.Weixin.MP.TenPayLib.TenPayUtil

TenpayUtil ��ժҪ˵���� �����ļ�
Show file Open project: JeffreySu/WeiXinMPSDK Class Usage Examples

Public Methods

Method Description
BuildRandomStr ( int length ) : string

取随机数

GetNoncestr ( ) : string

随机生成Noncestr

GetTimestamp ( ) : string
UnixStamp ( ) : UInt32

取时间戳生成随即数,替换交易单号中的后10位流水号

UrlDecode ( string instr, string charset ) : string

对字符串进行URL解码

UrlEncode ( string instr, string charset ) : string

对字符串进行URL编码

Method Details

BuildRandomStr() public static method

取随机数
public static BuildRandomStr ( int length ) : string
length int
return string

GetNoncestr() public static method

随机生成Noncestr
public static GetNoncestr ( ) : string
return string

GetTimestamp() public static method

public static GetTimestamp ( ) : string
return string

UnixStamp() public static method

取时间戳生成随即数,替换交易单号中的后10位流水号
public static UnixStamp ( ) : UInt32
return System.UInt32

UrlDecode() public static method

对字符串进行URL解码
public static UrlDecode ( string instr, string charset ) : string
instr string
charset string
return string

UrlEncode() public static method

对字符串进行URL编码
public static UrlEncode ( string instr, string charset ) : string
instr string
charset string
return string