Skip to content

Commit e5af779

Browse files
committed
fix clear session AND auth
1 parent df3b088 commit e5af779

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

laravel/app/Services/WebSocketService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function onClose($server, $fd, $reactorId)
106106
* @param array $data
107107
* @param string $reason
108108
*
109-
* @return array
109+
* @return false|string
110110
*/
111111
public function outJson($code = 200, $data = [], $reason = 'success')
112112
{
@@ -123,7 +123,7 @@ public function outJson($code = 200, $data = [], $reason = 'success')
123123
*
124124
* @param $id
125125
*
126-
* @return array
126+
* @return false|string
127127
*/
128128
protected function getRateById($id)
129129
{
@@ -140,7 +140,7 @@ protected function getRateById($id)
140140
*
141141
* @param int $user_id 用户 id
142142
*
143-
* @return array
143+
* @return false|string
144144
*/
145145
private function apiExcel($user_id)
146146
{

laravel/config/laravels.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@
5656
'swoole_tables' => [
5757
],
5858
'cleaners' => [
59-
//Hhxsv5\LaravelS\Illuminate\Cleaners\SessionCleaner::class, // 如果你的项目中使用到了Session或Authentication,请解除这行注释
60-
//Hhxsv5\LaravelS\Illuminate\Cleaners\AuthCleaner::class, // 如果你的项目中使用到了Authentication或Passport,请解除这行注释
59+
Hhxsv5\LaravelS\Illuminate\Cleaners\SessionCleaner::class, // 如果你的项目中使用到了Session或Authentication,请解除这行注释
60+
Hhxsv5\LaravelS\Illuminate\Cleaners\AuthCleaner::class, // 如果你的项目中使用到了Authentication或Passport,请解除这行注释
6161
Hhxsv5\LaravelS\Illuminate\Cleaners\JWTCleaner::class, // 如果你的项目中使用到了包"tymon/jwt-auth",请解除这行注释
62-
Hhxsv5\LaravelS\Illuminate\Cleaners\RequestCleaner::class,
62+
// Hhxsv5\LaravelS\Illuminate\Cleaners\RequestCleaner::class,
6363
//...
6464
],
6565
'swoole' => [

0 commit comments

Comments
 (0)