Skip to content

Commit e7af688

Browse files
authored
Update route.php
1 parent 147f7fc commit e7af688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/plugin/webman/push/route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* 私有频道鉴权,这里应该使用session辨别当前用户身份,然后确定该用户是否有权限监听channel_name
2828
*/
2929
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'));
30+
$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'));
3131
$channel_name = $request->post('channel_name');
3232
$session = $request->session();
3333
// 这里应该通过session和channel_name判断当前用户是否有权限监听channel_name

0 commit comments

Comments
 (0)