protected function verifySignature()
{
$signer = new Signer($this->params->all());
$signer->setSort($this->sort);
$signer->setEncodePolicy($this->encodePolicy);
$content = $signer->getContentToSign();
$sign = $this->params->get('sign');
$match = (new Signer())->verifyWithRSA($content, $sign, $this->getAlipayPublicKey());
if (!$match) {
throw new InvalidRequestException('The signature is not match');
}
}