C# 클래스 Senparc.Weixin.MP.TenPayLibV3.TenPayV3Util

TenpayUtil ��ժҪ˵���� �����ļ�
파일 보기 프로젝트 열기: JeffreySu/WeiXinMPSDK 1 사용 예제들

공개 메소드들

메소드 설명
BuildDailyRandomStr ( int length ) : string

创建当天内不会重复的数字

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编码

메소드 상세

BuildDailyRandomStr() 공개 정적인 메소드

创建当天内不会重复的数字
public static BuildDailyRandomStr ( int length ) : string
length int
리턴 string

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