diff --git a/composer.lock b/composer.lock index 0a63db318..b4fefcb71 100644 --- a/composer.lock +++ b/composer.lock @@ -879,12 +879,12 @@ "source": { "type": "git", "url": "https://github.com/zoujingli/ThinkLibrary.git", - "reference": "8e1a13fd20d0a454ecccab056a0f6ebe477fe65f" + "reference": "a98a370bc0619346f72a753e920df6b659bfc48d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/8e1a13fd20d0a454ecccab056a0f6ebe477fe65f", - "reference": "8e1a13fd20d0a454ecccab056a0f6ebe477fe65f", + "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/a98a370bc0619346f72a753e920df6b659bfc48d", + "reference": "a98a370bc0619346f72a753e920df6b659bfc48d", "shasum": "", "mirrors": [ { @@ -928,7 +928,7 @@ ], "description": "ThinkPHP v6.0 Development Library", "homepage": "http://thinkadmin.top", - "time": "2020-08-05T02:41:59+00:00" + "time": "2020-08-05T02:56:06+00:00" }, { "name": "zoujingli/wechat-developer", diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 9143ba59b..4c235c8d8 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -903,12 +903,12 @@ "source": { "type": "git", "url": "https://github.com/zoujingli/ThinkLibrary.git", - "reference": "8e1a13fd20d0a454ecccab056a0f6ebe477fe65f" + "reference": "a98a370bc0619346f72a753e920df6b659bfc48d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/8e1a13fd20d0a454ecccab056a0f6ebe477fe65f", - "reference": "8e1a13fd20d0a454ecccab056a0f6ebe477fe65f", + "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/a98a370bc0619346f72a753e920df6b659bfc48d", + "reference": "a98a370bc0619346f72a753e920df6b659bfc48d", "shasum": "", "mirrors": [ { @@ -924,7 +924,7 @@ "ext-json": "*", "topthink/framework": "^6.0" }, - "time": "2020-08-05T02:41:59+00:00", + "time": "2020-08-05T02:56:06+00:00", "type": "library", "extra": { "think": { diff --git a/vendor/services.php b/vendor/services.php index bee730bc1..5d7d69b24 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'think\\admin\\Library', diff --git a/vendor/zoujingli/think-library/src/Library.php b/vendor/zoujingli/think-library/src/Library.php index 3fd62944c..058445c21 100644 --- a/vendor/zoujingli/think-library/src/Library.php +++ b/vendor/zoujingli/think-library/src/Library.php @@ -73,8 +73,8 @@ class Library extends Service $this->app->request->setPathinfo($_SERVER['argv'][1]); } } else { - $isSess = $this->app->request->request('not_init_session', 0) > 0; - $notYar = stripos($this->app->request->header('user-agent', ''), 'PHP Yar RPC-') !== false; + $isSess = $this->app->request->request('not_init_session', 0) == 0; + $notYar = stripos($this->app->request->header('user-agent', ''), 'PHP Yar RPC-') === false; if ($notYar && $isSess) { // 注册会话初始化中间键 $this->app->middleware->add(SessionInit::class);