We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用你列子中的回调方法,支付宝回调用回调地址后数据是以POST方式返回回来的,请问你的notify 函数规定了类型,导致我一直接收不到支付宝回调信息,我改为了$_POST去接收,但是这样就需要修改你封装好的文件里面的东西,所以想问一下,是我这边有什么代码没有配置上还是怎么回事
Severity: 4096
Message: Argument 1 passed to Alipay_notify_controller::notify() must be an instance of Illuminate\Http\Request, none given
Filename: controllers/Alipay_notify_controller.php
Line Number: 16
The text was updated successfully, but these errors were encountered:
示例代码中使用了 Request 类,并自动注入到了Controller 的 notify 方法中,如果没有使用这个类,您可以直接传递 $_POST 全局变量到 verify 中即可。
感谢支持!!
Sorry, something went wrong.
No branches or pull requests
问题描述
使用你列子中的回调方法,支付宝回调用回调地址后数据是以POST方式返回回来的,请问你的notify 函数规定了类型,导致我一直接收不到支付宝回调信息,我改为了$_POST去接收,但是这样就需要修改你封装好的文件里面的东西,所以想问一下,是我这边有什么代码没有配置上还是怎么回事
代码
load->model('paymentrequest/Payment_request_model'); } public function notify(Request $request) { file_put_contents('notify.txt', $request, FILE_APPEND); $pay = new Pay($this->alipay_config); if ($pay->driver('alipay')->gateway('app')->verify($request->all())) { file_put_contents('notify.txt', $request, FILE_APPEND); } } } ## 报错详情Severity: 4096
Message: Argument 1 passed to Alipay_notify_controller::notify() must be an instance of Illuminate\Http\Request, none given
Filename: controllers/Alipay_notify_controller.php
Line Number: 16
The text was updated successfully, but these errors were encountered: