mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
ComposerUpdate
This commit is contained in:
parent
98977f7fb7
commit
fc72ddd896
8
composer.lock
generated
8
composer.lock
generated
@ -937,12 +937,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "b236f9f14d4becb0f0dadf479ff2627490909af7"
|
||||
"reference": "810b66ebea4a261549df9163df0430f7794143fe"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/b236f9f14d4becb0f0dadf479ff2627490909af7",
|
||||
"reference": "b236f9f14d4becb0f0dadf479ff2627490909af7",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/810b66ebea4a261549df9163df0430f7794143fe",
|
||||
"reference": "810b66ebea4a261549df9163df0430f7794143fe",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -987,7 +987,7 @@
|
||||
],
|
||||
"description": "ThinkPHP v6.0 Development Library",
|
||||
"homepage": "http://thinkadmin.top",
|
||||
"time": "2020-08-20T09:39:39+00:00"
|
||||
"time": "2020-08-20T10:09:01+00:00"
|
||||
},
|
||||
{
|
||||
"name": "zoujingli/wechat-developer",
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -963,12 +963,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "b236f9f14d4becb0f0dadf479ff2627490909af7"
|
||||
"reference": "810b66ebea4a261549df9163df0430f7794143fe"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/b236f9f14d4becb0f0dadf479ff2627490909af7",
|
||||
"reference": "b236f9f14d4becb0f0dadf479ff2627490909af7",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/810b66ebea4a261549df9163df0430f7794143fe",
|
||||
"reference": "810b66ebea4a261549df9163df0430f7794143fe",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -985,7 +985,7 @@
|
||||
"ext-mbstring": "*",
|
||||
"topthink/framework": "^6.0"
|
||||
},
|
||||
"time": "2020-08-20T09:39:39+00:00",
|
||||
"time": "2020-08-20T10:09:01+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"think": {
|
||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
||||
<?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);
|
||||
return array (
|
||||
0 => 'think\\admin\\Library',
|
||||
|
@ -150,11 +150,7 @@ class TokenService extends Service
|
||||
private function _getCacheItem(string $token, $default = [])
|
||||
{
|
||||
$this->_clearTimeoutCache();
|
||||
if (isset($this->cachedata[$token])) {
|
||||
return array_merge($this->cachedata[$token], ['token' => $token]);
|
||||
} else {
|
||||
return $default;
|
||||
}
|
||||
return $this->cachedata[$token] ?? $default;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -181,6 +177,9 @@ class TokenService extends Service
|
||||
unset($this->cachedata[$key]);
|
||||
}
|
||||
}
|
||||
if (count($this->cachedata) > 99) {
|
||||
$this->cachedata = array_slice($this->cachedata, -99);
|
||||
}
|
||||
return $this->cachedata;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user