tp5.0微信H5支付【原创

来源:https://www.sucaihuo.com/php/3226.html 2017-11-20 10:37浏览(7924) 收藏

微信H5支付,微信公众号以外浏览器唤起微信支付,页面,控制器,模型已经写好,换掉信息即可
tp5.0微信H5支付
分类:PHP > Thinkphp 难易:初级
下载资源 下载积分: 350 积分
建议下载这款html5手机wap微信支付源码:http://www.sucaihuo.com/php/3009.html
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]);
            }
        }
    }
声明:本文为原创文章,如需转载,请注明来源sucaihuo.com并保留原文链接:https://www.sucaihuo.com/php/3226.html
评论1
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

  • 头像 沙发
    08-05 15:05
    ***
    我下载后,点击购买 按钮没有反应
1 2