ComposerUpdate

This commit is contained in:
Anyon 2020-05-12 10:47:02 +08:00
parent 7adafb76fd
commit c0cb312f0b
4 changed files with 10 additions and 11 deletions

8
composer.lock generated
View File

@ -909,12 +909,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git", "url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "4c1cb3800578c58b0b63ea0d1fcf850ea7f80579" "reference": "ac00eec5a084eecf07d4260d975fc2f3f52659d9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/4c1cb3800578c58b0b63ea0d1fcf850ea7f80579", "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/ac00eec5a084eecf07d4260d975fc2f3f52659d9",
"reference": "4c1cb3800578c58b0b63ea0d1fcf850ea7f80579", "reference": "ac00eec5a084eecf07d4260d975fc2f3f52659d9",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@ -958,7 +958,7 @@
], ],
"description": "ThinkPHP v6.0 Development Library", "description": "ThinkPHP v6.0 Development Library",
"homepage": "http://framework.thinkadmin.top", "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", "name": "zoujingli/wechat-developer",

View File

@ -935,12 +935,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git", "url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "4c1cb3800578c58b0b63ea0d1fcf850ea7f80579" "reference": "ac00eec5a084eecf07d4260d975fc2f3f52659d9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/4c1cb3800578c58b0b63ea0d1fcf850ea7f80579", "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/ac00eec5a084eecf07d4260d975fc2f3f52659d9",
"reference": "4c1cb3800578c58b0b63ea0d1fcf850ea7f80579", "reference": "ac00eec5a084eecf07d4260d975fc2f3f52659d9",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@ -956,7 +956,7 @@
"ext-json": "*", "ext-json": "*",
"topthink/framework": "^6.0" "topthink/framework": "^6.0"
}, },
"time": "2020-05-11T09:23:33+00:00", "time": "2020-05-12T02:34:46+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-05-11 18:18:49 // This file is automatically generated at:2020-05-12 10:46:44
declare (strict_types = 1); declare (strict_types = 1);
return array ( return array (
0 => 'think\\app\\Service', 0 => 'think\\app\\Service',

View File

@ -42,11 +42,10 @@ class CaptchaService extends Service
{ {
// 动态配置属性 // 动态配置属性
foreach ($config as $k => $v) if (isset($this->$k)) $this->$k = $v; foreach ($config as $k => $v) if (isset($this->$k)) $this->$k = $v;
$this->code = '';
// 生成验证码序号 // 生成验证码序号
$this->uniqid = uniqid('captcha') . mt_rand(1000, 9999); $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++) { for ($i = 0; $i < $this->length; $i++) {
$this->code .= $this->charset[mt_rand(0, $length)]; $this->code .= $this->charset[mt_rand(0, $length)];
} }