Non-static method 问题
ErrorException in PayController.php line 122:
Non-static method Symfony\Component\HttpFoundation\Request::getQueryString() should not be called statically, assuming $this from incompatible context
我的是这样写的
路由是这样的
Non-static method Symfony\Component\HttpFoundation\Request::getQueryString() should not be called statically, assuming $this from incompatible context
我的是这样写的
// 验证请求。
if (! app('alipay.web')->verify()) {
Log::notice('Alipay return query data verification fail.', [
'data' => Request::getQueryString()
]);
return view('alipay.fail');
}
// 判断通知类型。
switch (Input::get('trade_status')) {
case 'TRADE_SUCCESS':
case 'TRADE_FINISHED':
// TODO: 支付成功,取得订单号进行其它相关操作。
Log::debug('Alipay notify get data verification success.', [
'out_trade_no' => Input::get('out_trade_no'),
'trade_no' => Input::get('trade_no')
]);
break;
}
return Redirect::to('mycontract/');
路由是这样的
Route::get('/webReturn','PayController@webReturn');
1 个回复
refear99
赞同来自: