群信息
This commit is contained in:
@@ -5,6 +5,7 @@ namespace app\middleware;
|
|||||||
use app\exception\MyBusinessException;
|
use app\exception\MyBusinessException;
|
||||||
use extend\chat\model\Base;
|
use extend\chat\model\Base;
|
||||||
use support\exception\BusinessException;
|
use support\exception\BusinessException;
|
||||||
|
use support\Log;
|
||||||
use support\Redis;
|
use support\Redis;
|
||||||
use Webman\Http\Response;
|
use Webman\Http\Response;
|
||||||
use Webman\Http\Request;
|
use Webman\Http\Request;
|
||||||
@@ -15,8 +16,10 @@ class JwtAuthMiddleware implements MiddlewareInterface
|
|||||||
public function process(Request $request, callable $handler) : Response
|
public function process(Request $request, callable $handler) : Response
|
||||||
{
|
{
|
||||||
$user_info = Base::getUser($request->header('token'));
|
$user_info = Base::getUser($request->header('token'));
|
||||||
$request->setPost('uid', $user_info['uid']);
|
$a = $request->setPost('uid', $user_info['uid']);
|
||||||
$request->setPost('user_type', $user_info['user_type']);
|
Log::info('uid注入结果' . json_encode($request->post()));
|
||||||
|
$b = $request->setPost('user_type', $user_info['user_type']);
|
||||||
|
Log::info('user_type注入结果' . json_encode($request->post()));
|
||||||
return $handler($request);
|
return $handler($request);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user