Browse Source

ComposerUpdate

Anyon 4 years ago
parent
commit
fc72ddd896

+ 4 - 4
composer.lock

@@ -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",

+ 4 - 4
vendor/composer/installed.json

@@ -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": {

+ 1 - 1
vendor/services.php

@@ -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',

+ 4 - 5
vendor/zoujingli/think-library/src/service/TokenService.php

@@ -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;
     }
 }