From c0cb312f0b1ca16530c2a254a5bdd7756add00ef Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 12 May 2020 10:47:02 +0800 Subject: [PATCH] ComposerUpdate --- composer.lock | 8 ++++---- vendor/composer/installed.json | 8 ++++---- vendor/services.php | 2 +- .../think-library/src/service/CaptchaService.php | 3 +-- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/composer.lock b/composer.lock index 2217a39d9..f4d7abb12 100644 --- a/composer.lock +++ b/composer.lock @@ -909,12 +909,12 @@ "source": { "type": "git", "url": "https://github.com/zoujingli/ThinkLibrary.git", - "reference": "4c1cb3800578c58b0b63ea0d1fcf850ea7f80579" + "reference": "ac00eec5a084eecf07d4260d975fc2f3f52659d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/4c1cb3800578c58b0b63ea0d1fcf850ea7f80579", - "reference": "4c1cb3800578c58b0b63ea0d1fcf850ea7f80579", + "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/ac00eec5a084eecf07d4260d975fc2f3f52659d9", + "reference": "ac00eec5a084eecf07d4260d975fc2f3f52659d9", "shasum": "", "mirrors": [ { @@ -958,7 +958,7 @@ ], "description": "ThinkPHP v6.0 Development Library", "homepage": "http://framework.thinkadmin.top", - "time": "2020-05-11T09:23:33+00:00" + "time": "2020-05-12T02:34:46+00:00" }, { "name": "zoujingli/wechat-developer", diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 1dd0fcfc9..69a38b969 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -935,12 +935,12 @@ "source": { "type": "git", "url": "https://github.com/zoujingli/ThinkLibrary.git", - "reference": "4c1cb3800578c58b0b63ea0d1fcf850ea7f80579" + "reference": "ac00eec5a084eecf07d4260d975fc2f3f52659d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/4c1cb3800578c58b0b63ea0d1fcf850ea7f80579", - "reference": "4c1cb3800578c58b0b63ea0d1fcf850ea7f80579", + "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/ac00eec5a084eecf07d4260d975fc2f3f52659d9", + "reference": "ac00eec5a084eecf07d4260d975fc2f3f52659d9", "shasum": "", "mirrors": [ { @@ -956,7 +956,7 @@ "ext-json": "*", "topthink/framework": "^6.0" }, - "time": "2020-05-11T09:23:33+00:00", + "time": "2020-05-12T02:34:46+00:00", "type": "library", "extra": { "think": { diff --git a/vendor/services.php b/vendor/services.php index f1fc7f5ed..a08998cd9 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'think\\app\\Service', diff --git a/vendor/zoujingli/think-library/src/service/CaptchaService.php b/vendor/zoujingli/think-library/src/service/CaptchaService.php index ae7064608..f81003150 100644 --- a/vendor/zoujingli/think-library/src/service/CaptchaService.php +++ b/vendor/zoujingli/think-library/src/service/CaptchaService.php @@ -42,11 +42,10 @@ class CaptchaService extends Service { // 动态配置属性 foreach ($config as $k => $v) if (isset($this->$k)) $this->$k = $v; - $this->code = ''; // 生成验证码序号 $this->uniqid = uniqid('captcha') . mt_rand(1000, 9999); // 生成验证码字符串 - $length = strlen($this->charset) - 1; + list($this->code, $length) = ['', strlen($this->charset) - 1]; for ($i = 0; $i < $this->length; $i++) { $this->code .= $this->charset[mt_rand(0, $length)]; }