一、修改openssl_sign、openssl_verify
文件路径:aop/AopClient.php
将函数里面的OPENSSL_ALGO_SHA256修改为sha256WithRSAEncryption
二
、修改json_encode
文件路径:
网页电脑端:pagepay/buildermodel/AlipayTradePagePayContentBuilder.php
网页手机端:wappay/buildermodel/AlipayTradeWapPayContentBuilder.php
将json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE)修改为my_json_encode($this->bizContentarr)
新加方法
functionmy_json_encode($array){
if(version_compare(PHP_VERSION,'5.4.0','<')){
$str=json_encode($array);
$str=preg_replace_callback("#\\\u([0-9a-f]{4})#i",function($matchs){
returniconv('UCS-2BE','UTF-8',pack('H4',$matchs[1]));
},$str);
return$str;
}else{
returnjson_encode($array,JSON_UNESCAPED_UNICODE);
}
}