$xm
$xm
file_put_contents("json.txt",$xm
$xm
$trade_no=$xm
之后就可以更新订单了。我把更新订单写在这里了WxPayNotify extends WxPayNotifyReply
{
/**
*
* 回调入口
* @param bool $needSign 是否需要签名输出
*/
final public function Handle($needSign = true)
{ $xm
// file_put_contents("e1.txt","阿萨德");
$msg = "OK";
//当返回false的时候,表示notify中调用NotifyCallBack回调失败获取签名校验失败,此时直接回复失败
$result = WxpayApi::notify(array($this, 'NotifyCallBack'), $msg);
if($result == false){
//file_put_contents("e1.txt","1");
$this->SetReturn_code("FAIL");
$this->SetReturn_msg($msg);
$this->ReplyNotify(false);
return;
} else {
//该分支在成功回调到NotifyCallBack方法,处理完成之后流程
$this->SetReturn_code("SUCCESS");
$this->SetReturn_msg("OK");
}
$db=new db_class("localhost:3306","root","123456","yuewen");
$db->db_settablename("think_list");
$typearr[]="status";
$valuearr[]=1;
$xm
file_put_contents("json.txt",$xm
$xm
$trade_no=$xm
$where="trade_no='".$trade_no."'";
file_put_contents("xm
file_put_contents("asl1.txt",$where);
$db->db_update($typearr,$valuearr,$where);
$this->ReplyNotify($needSign);
}
}
重点,我把整个文件夹上传了,你配置lib目录里WxPay.Config.php信息就好了,更新订单要自己改哦。。。
payment.rar
( 181.64 KB 下载:42 次 )
最佳答案