PHP 클래스 PFinal\Wechat\SDK\XMLParse

提供提取消息格式中的密文及生成回复消息格式的接口.
파일 보기 프로젝트 열기: pfinal/wechat

공개 메소드들

메소드 설명
extract ( string $xmltext ) : string 提取出xml数据包中的加密消息
generate ( string $encrypt, string $signature, string $timestamp, string $nonce ) 生成xml消息

메소드 상세

extract() 공개 메소드

提取出xml数据包中的加密消息
public extract ( string $xmltext ) : string
$xmltext string 待提取的xml字符串
리턴 string 提取出的加密消息字符串

generate() 공개 메소드

生成xml消息
public generate ( string $encrypt, string $signature, string $timestamp, string $nonce )
$encrypt string 加密后的消息密文
$signature string 安全签名
$timestamp string 时间戳
$nonce string 随机字符串