Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
PFinal
Wechat
SDK
XMLParse
PHP Class PFinal\Wechat\SDK\XMLParse
提供提取消息格式中的密文及生成回复消息格式的接口.
Mostrar archivo
Open project: pfinal/wechat
Public Methods
Method
Description
extract
(
string
$xmltext
) :
string
提取出xml数据包中的加密消息
generate
(
string
$encrypt
,
string
$signature
,
string
$timestamp
,
string
$nonce
)
生成xml消息
Method Details
extract()
public
method
提取出xml数据包中的加密消息
public
extract
(
string
$xmltext
) :
string
$xmltext
string
待提取的xml字符串
return
string
提取出的加密消息字符串
generate()
public
method
生成xml消息
public
generate
(
string
$encrypt
,
string
$signature
,
string
$timestamp
,
string
$nonce
)
$encrypt
string
加密后的消息密文
$signature
string
安全签名
$timestamp
string
时间戳
$nonce
string
随机字符串