notify($reqdata); return $res; } public function aliReturn(Request $request) { $pay = \App::make('aliPay'); $res = $pay->return($request->all()); // 订单类型 1-升级支付 2-购买广告支付 2-点币购买 if ($res['type'] == 2) { if (isMobile()) { return redirect('/#/successPage?type=savead'); } else { return redirect('/pc/#/home?type=savead'); } } else { return redirect('/#/successPage?type=paysuccess'); } } public function weichatNotify(Request $request) { $pay = \App::make('wechat'); $xml = file_get_contents("php://input"); //$jsonxml = json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)); // $data = json_decode($jsonxml, true); $res = $pay->notify($xml); } public function getPcPayInfo(Request $request){ $param=$request->all(); if(!empty($param['order_no'])){ $order=Order::whereOrderNo($param['order_no'])->select('id','order_no','is_pay')->first(); if(!empty($order)){ $order=$order->toArray(); return showJsonSucc('数据查找成功',$order); }else{ return showJsonErr('订单不存在!'); } }else{ return showJsonErr('参数order_no不能为空'); } } }