最新PHP微信H5支付功能完整源码分享,支持微信公众号以外浏览器唤起微信支付,页面,控制器,模型已经写好,换掉信息即可!
public function notify(){ $xml = $GLOBALS['HTTP_RAW_POST_DATA']; libxml_disable_entity_loader(true); $arr= json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true); if($arr['return_code']=='SUCCESS'){ $oid = $arr['out_trade_no']; $da = Db::name('Order')->where('order_num',$oid)->find(); if($da['isfalse']==0){ Db::name('Order')->where('order_num',$oid)->update(['isfalse'=>1,'status'=>1]); } } }
[reply]链接: https://pan.baidu.com/s/1ggzFQs7 密码: eeb6[/reply]
感谢
感谢
实打实大师大师的
谢谢啦