 
            
        
public function getRiskNotice()
{
foreach ($_POST as $k => &$v) {
$v = iconv('gbk', 'utf-8', $v);
}
$checkRes = $this->checkSign($arr);
if ($checkRes) {
// 验签成功
} else {
// 验签失败'
}
return 'success';
}
public function checkSign($param = [])
{
$app = new \AopClient();
$app->postCharset = 'GBK';
$app->alipayrsaPublicKey = '公钥';
$res = $app->rsaCheckV1($param, '私钥', 'RSA2');
return $res;
}
 
                 
                        
                    Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号