We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 147f7fc commit e7af688Copy full SHA for e7af688
src/config/plugin/webman/push/route.php
@@ -27,7 +27,7 @@
27
* 私有频道鉴权,这里应该使用session辨别当前用户身份,然后确定该用户是否有权限监听channel_name
28
*/
29
Route::any(config('plugin.webman.push.app.auth'), function (Request $request) {
30
- $pusher = new Api(config('plugin.webman.push.app.api'), config('plugin.webman.push.app.app_key'), config('plugin.webman.push.app.app_secret'));
+ $pusher = new Api(str_replace('0.0.0.0', '127.0.0.1', config('plugin.webman.push.app.api')), config('plugin.webman.push.app.app_key'), config('plugin.webman.push.app.app_secret'));
31
$channel_name = $request->post('channel_name');
32
$session = $request->session();
33
// 这里应该通过session和channel_name判断当前用户是否有权限监听channel_name
0 commit comments