新增打印入参

This commit is contained in:
2023-03-28 10:05:27 +08:00
parent db14967d6c
commit dcef640765
3 changed files with 8 additions and 3 deletions
+8
View File
@@ -8,6 +8,7 @@ use App\Constants\HttpEnumCode;
use App\Model\User;
use App\Utils\Auth;
use App\Utils\Jwt;
use App\Utils\Log;
use Hyperf\Context\Context;
use Hyperf\HttpMessage\Stream\SwooleStream;
use Hyperf\HttpServer\Contract\RequestInterface;
@@ -46,6 +47,13 @@ class AuthMiddleware implements MiddlewareInterface
$Auth = new Auth();
$Jwt = new Jwt();
// 打印入参请求-临时
$request_params = $this->request->all();
Log::getInstance()->info("请求地址 ".$path_info);
Log::getInstance()->info("请求方式 ".$method);
Log::getInstance()->info("请求参数 ".json_encode($request_params,JSON_UNESCAPED_UNICODE));
// 获取token
$token = $this->getHeaderToken();