C# 클래스 Senparc.Weixin.QY.TenPayLib.TenPayUtil

TenpayUtil 的摘要说明。 配置文件
파일 보기 프로젝트 열기: JeffreySu/WeiXinMPSDK

공개 메소드들

메소드 설명
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编码

메소드 상세

BuildRandomStr() 공개 정적인 메소드

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

GetNoncestr() 공개 정적인 메소드

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

GetTimestamp() 공개 정적인 메소드

public static GetTimestamp ( ) : string
리턴 string

UnixStamp() 공개 정적인 메소드

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

UrlDecode() 공개 정적인 메소드

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

UrlEncode() 공개 정적인 메소드

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