ComposerUpdate

This commit is contained in:
Anyon 2020-08-20 18:37:22 +08:00
parent 98977f7fb7
commit fc72ddd896
4 changed files with 13 additions and 14 deletions

8
composer.lock generated
View File

@ -937,12 +937,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git", "url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "b236f9f14d4becb0f0dadf479ff2627490909af7" "reference": "810b66ebea4a261549df9163df0430f7794143fe"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/b236f9f14d4becb0f0dadf479ff2627490909af7", "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/810b66ebea4a261549df9163df0430f7794143fe",
"reference": "b236f9f14d4becb0f0dadf479ff2627490909af7", "reference": "810b66ebea4a261549df9163df0430f7794143fe",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@ -987,7 +987,7 @@
], ],
"description": "ThinkPHP v6.0 Development Library", "description": "ThinkPHP v6.0 Development Library",
"homepage": "http://thinkadmin.top", "homepage": "http://thinkadmin.top",
"time": "2020-08-20T09:39:39+00:00" "time": "2020-08-20T10:09:01+00:00"
}, },
{ {
"name": "zoujingli/wechat-developer", "name": "zoujingli/wechat-developer",

View File

@ -963,12 +963,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git", "url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "b236f9f14d4becb0f0dadf479ff2627490909af7" "reference": "810b66ebea4a261549df9163df0430f7794143fe"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/b236f9f14d4becb0f0dadf479ff2627490909af7", "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/810b66ebea4a261549df9163df0430f7794143fe",
"reference": "b236f9f14d4becb0f0dadf479ff2627490909af7", "reference": "810b66ebea4a261549df9163df0430f7794143fe",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@ -985,7 +985,7 @@
"ext-mbstring": "*", "ext-mbstring": "*",
"topthink/framework": "^6.0" "topthink/framework": "^6.0"
}, },
"time": "2020-08-20T09:39:39+00:00", "time": "2020-08-20T10:09:01+00:00",
"type": "library", "type": "library",
"extra": { "extra": {
"think": { "think": {

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?php <?php
// This file is automatically generated at:2020-08-20 17:48:53 // This file is automatically generated at:2020-08-20 18:35:29
declare (strict_types = 1); declare (strict_types = 1);
return array ( return array (
0 => 'think\\admin\\Library', 0 => 'think\\admin\\Library',

View File

@ -150,11 +150,7 @@ class TokenService extends Service
private function _getCacheItem(string $token, $default = []) private function _getCacheItem(string $token, $default = [])
{ {
$this->_clearTimeoutCache(); $this->_clearTimeoutCache();
if (isset($this->cachedata[$token])) { return $this->cachedata[$token] ?? $default;
return array_merge($this->cachedata[$token], ['token' => $token]);
} else {
return $default;
}
} }
/** /**
@ -181,6 +177,9 @@ class TokenService extends Service
unset($this->cachedata[$key]); unset($this->cachedata[$key]);
} }
} }
if (count($this->cachedata) > 99) {
$this->cachedata = array_slice($this->cachedata, -99);
}
return $this->cachedata; return $this->cachedata;
} }
} }