public function encryptXml($xml, $timestamp, $nonce)
{
$errorCode = $this->getMessageCrypt()->encryptMsg($xml, $timestamp, $nonce, $xml);
if ($errorCode) {
$this->lastError = ['errcode' => $errorCode, 'errmsg' => 'XML数据加密失败!'];
return false;
}
return $xml;
}