mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
ComposerUpdate
This commit is contained in:
parent
7adafb76fd
commit
c0cb312f0b
8
composer.lock
generated
8
composer.lock
generated
@ -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",
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -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": {
|
||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
||||
<?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);
|
||||
return array (
|
||||
0 => 'think\\app\\Service',
|
||||
|
@ -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)];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user