php Laravel 微信支付V3 支付回调验证
话不多说直接上代码(如果有用的话-记得打赏哦)
/**
* 从证书中获取私钥
* @param $cert_path (微信平台证书---从《获取平台证书》接口中获得)
* @return bool
*/
function certPubKey($cert_path){
$cert_path = file_get_contents($cert_path);
$pub_key = openssl_pkey_get_public($cert_path);
if($pub_k
原创
2021-07-22 10:03:38 ·
1191 阅读 ·
2 评论