默认是example下面的notify.php
在PayNotifyCallBack类里面里面加,因为微信返回的是xml格式的,解析成数组
$data = $GLOBALS['HTTP_RAW_POST_DATA'];
public function curlset($data){
$p = xml_parser_create();
xml_parse_into_struct($p, $data, $vals, $index);
xml_parser_free($p);
foreach($vals as $k=>$v){
if(@$v['value'])$arr[$v['tag']] = $v['value'];
}
// file_put_contents('aaaaaa.txt',$arr);
return $arr;
}
$arr = $notify->curlset($data);
if($notify->Queryorder($arr['TRANSACTION_ID'])){
if($arr['RESULT_CODE'] == 'SUCCESS' && $arr['RETURN_CODE'] == 'SUCCESS' ){