From 3c5dc19443ebe9426b6984d4676107d09691344f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Wed, 23 Jan 2019 17:07:46 +0800 Subject: [PATCH] id fix --- src/Client.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Client.php b/src/Client.php index 4a9d21d..29d40d3 100644 --- a/src/Client.php +++ b/src/Client.php @@ -35,7 +35,7 @@ class Client public function __construct($config) { $this->config = $config; - $this->id = app('request')->header('X-Request-Id') ?: "no-x-request-id"; + $this->id = 1; } /** @@ -131,8 +131,7 @@ class Client */ protected function id() { -// return $this->id.'-'.time(); - return $this->id; + return $this->id++; } } \ No newline at end of file