huwhois 4 anos atrás
pai
commit
10b26de4a3

+ 1 - 54
README.md

@ -1,56 +1,3 @@
1 1
ThinkPHP 6.0
2
===============
3 2
4
> 运行环境要求PHP7.1+,兼容PHP8.0。
5
6
[官方应用服务市场](https://market.topthink.com) | [`ThinkAPI`——官方统一API服务](https://docs.topthink.com/think-api)
7
8
ThinkPHPV6.0版本由[亿速云](https://www.yisu.com/)独家赞助发布。
9
10
## 主要新特性
11
12
* 采用`PHP7`强类型(严格模式)
13
* 支持更多的`PSR`规范
14
* 原生多应用支持
15
* 更强大和易用的查询
16
* 全新的事件系统
17
* 模型事件和数据库事件统一纳入事件系统
18
* 模板引擎分离出核心
19
* 内部功能中间件化
20
* SESSION/Cookie机制改进
21
* 对Swoole以及协程支持改进
22
* 对IDE更加友好
23
* 统一和精简大量用法
24
25
## 安装
26
27
~~~
28
composer create-project topthink/think tp 6.0.*
29
~~~
30
31
如果需要更新框架使用
32
~~~
33
composer update topthink/framework
34
~~~
35
36
## 文档
37
38
[完全开发手册](https://www.kancloud.cn/manual/thinkphp6_0/content)
39
40
## 参与开发
41
42
请参阅 [ThinkPHP 核心框架包](https://github.com/top-think/framework)。
43
44
## 版权信息
45
46
ThinkPHP遵循Apache2开源协议发布,并提供免费使用。
47
48
本项目包含的第三方源码和二进制文件之版权信息另行标注。
49
50
版权所有Copyright © 2006-2020 by ThinkPHP (http://thinkphp.cn)
51
52
All rights reserved。
53
54
ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。
55
56
更多细节参阅 [LICENSE.txt](LICENSE.txt)
3
赛亿统计系统

+ 1 - 1
app/BaseController.php

@ -90,5 +90,5 @@ abstract class BaseController
90 90
91 91
        return $v->failException(true)->check($data);
92 92
    }
93
93
    use \liliuwei\think\Jump;
94 94
}

+ 49 - 0
app/controller/Base.php

@ -0,0 +1,49 @@
1
<?php
2
namespace app\controller;
3
4
use app\BaseController;
5
use think\App;
6
use think\facade\Db;
7
8
class Base extends BaseController
9
{
10
    protected $uid;
11
    protected $username;
12
13
    public function __construct(App $app)
14
    {
15
        parent::__construct($app);
16
17
        //判断是否登陆
18
        if (!session('?uid')) {
19
            $this->error('您还没有登录, 请登录', '/login');
20
        }
21
22
        // 登录用户信息
23
        $this->uid = session('uid');
24
        $this->username = session('username');
25
                
26
        //记录日志
27
        $this->addLog();
28
    }
29
30
    /**
31
     * 记录日志
32
     */
33
    private function addLog()
34
    {
35
        $data = [];
36
        $data['querystring'] = $this->app->request->query()?'?'.$this->app->request->query():'';
37
        $data['c'] = $this->app->request->controller();
38
        $data['a'] = $this->app->request->action();
39
        $data['userid'] = $this->uid;
40
        $data['username'] = $this->username;
41
        $data['ip'] = $this->app->request->ip();
42
        $data['time'] = time();
43
        $arr = ['Index/index','SysLog/index'];
44
45
        if (!in_array($data['c'].'/'.$data['a'], $arr)) {
46
            Db::name('sys_log')->insert($data);
47
        }
48
    }
49
}

+ 9 - 3
app/controller/Index.php

@ -1,13 +1,19 @@
1 1
<?php
2 2
namespace app\controller;
3 3
4
use app\BaseController;
4
use think\App;
5
use think\facade\View;
5 6
6
class Index extends BaseController
7
class Index extends Base
7 8
{
9
    public function __construct(App $app)
10
    {
11
        parent::__construct($app);
12
    }
13
8 14
    public function index()
9 15
    {
10
        return '<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }</style><div style="padding: 24px 48px;"> <h1>:) </h1><p> ThinkPHP V' . \think\facade\App::version() . '<br/><span style="font-size:30px;">14载初心不改 - 你值得信赖的PHP框架</span></p><span style="font-size:25px;">[ V6.0 版本由 <a href="https://www.yisu.com/" target="yisu">亿速云</a> 独家赞助发布 ]</span></div><script type="text/javascript" src="https://tajs.qq.com/stats?sId=64890268" charset="UTF-8"></script><script type="text/javascript" src="https://e.topthink.com/Public/static/client.js"></script><think id="ee9b1aa918103c4fc"></think>';
16
        return View::fetch();
11 17
    }
12 18
13 19
    public function hello($name = 'ThinkPHP6')

+ 76 - 0
app/controller/Login.php

@ -1 +1,77 @@
1 1
<?php
2
namespace app\controller;
3
4
use think\App;
5
use app\BaseController;
6
use app\model\SysUser as UserModel;
7
use think\facade\View;
8
9
class Login extends BaseController
10
{
11
    protected $user_model;
12
13
    public function __construct(App $app)
14
    {
15
        parent::__construct($app);
16
17
        $this->user_model = new UserModel();
18
    }
19
20
    public function index()
21
    {
22
        if ($this->request->isPost()) {
23
            $param = $this->request->param();
24
25
            $username = $param['username'];
26
            $password = $param['password'];
27
            $captcha = $param['captcha'];
28
29
            if (!$username || !$password || !$captcha) {
30
                $this->error('用户名/密码/验证码不能为空');
31
            }
32
33
            // if (!captcha_check($captcha)) {
34
            //     $this->error('验证码不正确', '/login');
35
            // }
36
37
            $info = $this->user_model->where('username', $username)->find();
38
39
            if (!$info || md5($password.$info->salt) != $info->password) {
40
                $this->error('用户名/密码不正确', '/login');
41
            }
42
            // var_dump($param);
43
            // exit;
44
            session('uid', $info->id);
45
            session('username', $info->username);
46
            session('role_id', $info->role_id);
47
            session('last_time', $info->login_time);
48
            session('last_ip', $info->login_ip);
49
50
            $info->login_time = time();
51
            $info->login_ip = $this->request->ip();
52
      
53
            $result = $info->save();
54
55
            if ($result === false) {
56
                $this->error('登陆失败,请稍后重试', '/login');
57
            }
58
59
            $this->success('登入成功', '/index');
60
        } else {
61
            if (session('?username')) {
62
                $this->success('您已登入', '/index');
63
            } else {
64
                return View::fetch();
65
            }
66
        }
67
    }
68
69
    /**
70
     * 登出
71
     */
72
    public function logout()
73
    {
74
        session(null);
75
        return redirect('/login');
76
    }
77
}

+ 1 - 1
app/middleware.php

@ -6,5 +6,5 @@ return [
6 6
    // 多语言加载
7 7
    // \think\middleware\LoadLangPack::class,
8 8
    // Session初始化
9
    // \think\middleware\SessionInit::class
9
    \think\middleware\SessionInit::class
10 10
];

+ 6 - 0
app/model/SysUser.php

@ -0,0 +1,6 @@
1
<?php
2
namespace app\model;
3
4
class SysUser extends \think\Model
5
{
6
}

+ 4 - 1
composer.json

@ -22,7 +22,10 @@
22 22
    "require": {
23 23
        "php": ">=7.1.0",
24 24
        "topthink/framework": "^6.0.0",
25
        "topthink/think-orm": "^2.0"
25
        "topthink/think-orm": "^2.0",
26
        "liliuwei/thinkphp-jump": "^1.5",
27
        "phpoffice/phpspreadsheet": "^1.17",
28
        "topthink/think-captcha": "^3.0"
26 29
    },
27 30
    "require-dev": {
28 31
        "symfony/var-dumper": "^4.2",

+ 925 - 163
composer.lock

@ -4,8 +4,58 @@
4 4
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 5
        "This file is @generated automatically"
6 6
    ],
7
    "content-hash": "74a749574e0f40df27b0061a71e2b878",
7
    "content-hash": "b58cb43698033040b8f817d1b4b706cd",
8 8
    "packages": [
9
        {
10
            "name": "ezyang/htmlpurifier",
11
            "version": "v4.13.0",
12
            "source": {
13
                "type": "git",
14
                "url": "https://github.com/ezyang/htmlpurifier.git",
15
                "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75"
16
            },
17
            "dist": {
18
                "type": "zip",
19
                "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
20
                "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
21
                "shasum": ""
22
            },
23
            "require": {
24
                "php": ">=5.2"
25
            },
26
            "require-dev": {
27
                "simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd"
28
            },
29
            "type": "library",
30
            "autoload": {
31
                "psr-0": {
32
                    "HTMLPurifier": "library/"
33
                },
34
                "files": [
35
                    "library/HTMLPurifier.composer.php"
36
                ],
37
                "exclude-from-classmap": [
38
                    "/library/HTMLPurifier/Language/"
39
                ]
40
            },
41
            "notification-url": "https://packagist.org/downloads/",
42
            "license": [
43
                "LGPL-2.1-or-later"
44
            ],
45
            "authors": [
46
                {
47
                    "name": "Edward Z. Yang",
48
                    "email": "admin@htmlpurifier.org",
49
                    "homepage": "http://ezyang.com"
50
                }
51
            ],
52
            "description": "Standards compliant HTML filter written in PHP",
53
            "homepage": "http://htmlpurifier.org/",
54
            "keywords": [
55
                "html"
56
            ],
57
            "time": "2020-06-29T00:56:53+00:00"
58
        },
9 59
        {
10 60
            "name": "league/flysystem",
11 61
            "version": "1.1.3",
@ -197,72 +247,88 @@
197 247
            "time": "2021-01-18T20:58:21+00:00"
198 248
        },
199 249
        {
200
            "name": "psr/cache",
201
            "version": "1.0.1",
250
            "name": "liliuwei/thinkphp-jump",
251
            "version": "v1.5",
202 252
            "source": {
203 253
                "type": "git",
204
                "url": "https://github.com/php-fig/cache.git",
205
                "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8"
254
                "url": "https://github.com/liliuwei/thinkphp-jump.git",
255
                "reference": "481d41b922095f08230609919be5d19354c50540"
206 256
            },
207 257
            "dist": {
208 258
                "type": "zip",
209
                "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8",
210
                "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8",
259
                "url": "https://api.github.com/repos/liliuwei/thinkphp-jump/zipball/481d41b922095f08230609919be5d19354c50540",
260
                "reference": "481d41b922095f08230609919be5d19354c50540",
211 261
                "shasum": ""
212 262
            },
213 263
            "require": {
214
                "php": ">=5.3.0"
264
                "php": ">=7.1.0",
265
                "topthink/framework": "^6.0",
266
                "topthink/think-view": "^1.0"
215 267
            },
216
            "type": "library",
268
            "type": "think-extend",
217 269
            "extra": {
218
                "branch-alias": {
219
                    "dev-master": "1.0.x-dev"
270
                "think": {
271
                    "config": {
272
                        "jump": "src/config/jump.php"
273
                    }
220 274
                }
221 275
            },
222 276
            "autoload": {
223 277
                "psr-4": {
224
                    "Psr\\Cache\\": "src/"
278
                    "liliuwei\\think\\": "src/"
225 279
                }
226 280
            },
227 281
            "notification-url": "https://packagist.org/downloads/",
228 282
            "license": [
229
                "MIT"
283
                "Apache-2.0"
230 284
            ],
231 285
            "authors": [
232 286
                {
233
                    "name": "PHP-FIG",
234
                    "homepage": "http://www.php-fig.org/"
287
                    "name": "liliuwei",
288
                    "email": "974829947@qq.com"
235 289
                }
236 290
            ],
237
            "description": "Common interface for caching libraries",
291
            "description": "适用于thinkphp6.0的跳转扩展",
238 292
            "keywords": [
239
                "cache",
240
                "psr",
241
                "psr-6"
293
                "error",
294
                "redirect",
295
                "result",
296
                "success",
297
                "think-jump",
298
                "thinkphp"
242 299
            ],
243
            "time": "2016-08-06T20:24:11+00:00"
300
            "time": "2020-03-20T15:11:56+00:00"
244 301
        },
245 302
        {
246
            "name": "psr/container",
247
            "version": "1.1.1",
303
            "name": "maennchen/zipstream-php",
304
            "version": "2.1.0",
248 305
            "source": {
249 306
                "type": "git",
250
                "url": "https://github.com/php-fig/container.git",
251
                "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"
307
                "url": "https://github.com/maennchen/ZipStream-PHP.git",
308
                "reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58"
252 309
            },
253 310
            "dist": {
254 311
                "type": "zip",
255
                "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
256
                "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
312
                "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/c4c5803cc1f93df3d2448478ef79394a5981cc58",
313
                "reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58",
257 314
                "shasum": ""
258 315
            },
259 316
            "require": {
260
                "php": ">=7.2.0"
317
                "myclabs/php-enum": "^1.5",
318
                "php": ">= 7.1",
319
                "psr/http-message": "^1.0",
320
                "symfony/polyfill-mbstring": "^1.0"
321
            },
322
            "require-dev": {
323
                "ext-zip": "*",
324
                "guzzlehttp/guzzle": ">= 6.3",
325
                "mikey179/vfsstream": "^1.6",
326
                "phpunit/phpunit": ">= 7.5"
261 327
            },
262 328
            "type": "library",
263 329
            "autoload": {
264 330
                "psr-4": {
265
                    "Psr\\Container\\": "src/"
331
                    "ZipStream\\": "src/"
266 332
                }
267 333
            },
268 334
            "notification-url": "https://packagist.org/downloads/",
@ -271,48 +337,111 @@
271 337
            ],
272 338
            "authors": [
273 339
                {
274
                    "name": "PHP-FIG",
275
                    "homepage": "https://www.php-fig.org/"
340
                    "name": "Paul Duncan",
341
                    "email": "pabs@pablotron.org"
342
                },
343
                {
344
                    "name": "Jonatan Männchen",
345
                    "email": "jonatan@maennchen.ch"
346
                },
347
                {
348
                    "name": "Jesse Donat",
349
                    "email": "donatj@gmail.com"
350
                },
351
                {
352
                    "name": "András Kolesár",
353
                    "email": "kolesar@kolesar.hu"
276 354
                }
277 355
            ],
278
            "description": "Common Container Interface (PHP FIG PSR-11)",
279
            "homepage": "https://github.com/php-fig/container",
356
            "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.",
280 357
            "keywords": [
281
                "PSR-11",
282
                "container",
283
                "container-interface",
284
                "container-interop",
285
                "psr"
358
                "stream",
359
                "zip"
286 360
            ],
287
            "time": "2021-03-05T17:36:06+00:00"
361
            "funding": [
362
                {
363
                    "url": "https://opencollective.com/zipstream",
364
                    "type": "open_collective"
365
                }
366
            ],
367
            "time": "2020-05-30T13:11:16+00:00"
288 368
        },
289 369
        {
290
            "name": "psr/log",
291
            "version": "1.1.3",
370
            "name": "markbaker/complex",
371
            "version": "2.0.0",
292 372
            "source": {
293 373
                "type": "git",
294
                "url": "https://github.com/php-fig/log.git",
295
                "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
374
                "url": "https://github.com/MarkBaker/PHPComplex.git",
375
                "reference": "9999f1432fae467bc93c53f357105b4c31bb994c"
296 376
            },
297 377
            "dist": {
298 378
                "type": "zip",
299
                "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
300
                "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
379
                "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/9999f1432fae467bc93c53f357105b4c31bb994c",
380
                "reference": "9999f1432fae467bc93c53f357105b4c31bb994c",
301 381
                "shasum": ""
302 382
            },
303 383
            "require": {
304
                "php": ">=5.3.0"
384
                "php": "^7.2 || ^8.0"
305 385
            },
306
            "type": "library",
307
            "extra": {
308
                "branch-alias": {
309
                    "dev-master": "1.1.x-dev"
310
                }
386
            "require-dev": {
387
                "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
388
                "phpcompatibility/php-compatibility": "^9.0",
389
                "phpdocumentor/phpdocumentor": "2.*",
390
                "phploc/phploc": "^4.0",
391
                "phpmd/phpmd": "2.*",
392
                "phpunit/phpunit": "^7.0 || ^8.0 || ^9.3",
393
                "sebastian/phpcpd": "^4.0",
394
                "squizlabs/php_codesniffer": "^3.4"
311 395
            },
396
            "type": "library",
312 397
            "autoload": {
313 398
                "psr-4": {
314
                    "Psr\\Log\\": "Psr/Log/"
315
                }
399
                    "Complex\\": "classes/src/"
400
                },
401
                "files": [
402
                    "classes/src/functions/abs.php",
403
                    "classes/src/functions/acos.php",
404
                    "classes/src/functions/acosh.php",
405
                    "classes/src/functions/acot.php",
406
                    "classes/src/functions/acoth.php",
407
                    "classes/src/functions/acsc.php",
408
                    "classes/src/functions/acsch.php",
409
                    "classes/src/functions/argument.php",
410
                    "classes/src/functions/asec.php",
411
                    "classes/src/functions/asech.php",
412
                    "classes/src/functions/asin.php",
413
                    "classes/src/functions/asinh.php",
414
                    "classes/src/functions/atan.php",
415
                    "classes/src/functions/atanh.php",
416
                    "classes/src/functions/conjugate.php",
417
                    "classes/src/functions/cos.php",
418
                    "classes/src/functions/cosh.php",
419
                    "classes/src/functions/cot.php",
420
                    "classes/src/functions/coth.php",
421
                    "classes/src/functions/csc.php",
422
                    "classes/src/functions/csch.php",
423
                    "classes/src/functions/exp.php",
424
                    "classes/src/functions/inverse.php",
425
                    "classes/src/functions/ln.php",
426
                    "classes/src/functions/log2.php",
427
                    "classes/src/functions/log10.php",
428
                    "classes/src/functions/negative.php",
429
                    "classes/src/functions/pow.php",
430
                    "classes/src/functions/rho.php",
431
                    "classes/src/functions/sec.php",
432
                    "classes/src/functions/sech.php",
433
                    "classes/src/functions/sin.php",
434
                    "classes/src/functions/sinh.php",
435
                    "classes/src/functions/sqrt.php",
436
                    "classes/src/functions/tan.php",
437
                    "classes/src/functions/tanh.php",
438
                    "classes/src/functions/theta.php",
439
                    "classes/src/operations/add.php",
440
                    "classes/src/operations/subtract.php",
441
                    "classes/src/operations/multiply.php",
442
                    "classes/src/operations/divideby.php",
443
                    "classes/src/operations/divideinto.php"
444
                ]
316 445
            },
317 446
            "notification-url": "https://packagist.org/downloads/",
318 447
            "license": [
@ -320,46 +449,68 @@
320 449
            ],
321 450
            "authors": [
322 451
                {
323
                    "name": "PHP-FIG",
324
                    "homepage": "http://www.php-fig.org/"
452
                    "name": "Mark Baker",
453
                    "email": "mark@lange.demon.co.uk"
325 454
                }
326 455
            ],
327
            "description": "Common interface for logging libraries",
328
            "homepage": "https://github.com/php-fig/log",
456
            "description": "PHP Class for working with complex numbers",
457
            "homepage": "https://github.com/MarkBaker/PHPComplex",
329 458
            "keywords": [
330
                "log",
331
                "psr",
332
                "psr-3"
459
                "complex",
460
                "mathematics"
333 461
            ],
334
            "time": "2020-03-23T09:12:05+00:00"
462
            "time": "2020-08-26T10:42:07+00:00"
335 463
        },
336 464
        {
337
            "name": "psr/simple-cache",
338
            "version": "1.0.1",
465
            "name": "markbaker/matrix",
466
            "version": "2.1.2",
339 467
            "source": {
340 468
                "type": "git",
341
                "url": "https://github.com/php-fig/simple-cache.git",
342
                "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b"
469
                "url": "https://github.com/MarkBaker/PHPMatrix.git",
470
                "reference": "361c0f545c3172ee26c3d596a0aa03f0cef65e6a"
343 471
            },
344 472
            "dist": {
345 473
                "type": "zip",
346
                "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
347
                "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
474
                "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/361c0f545c3172ee26c3d596a0aa03f0cef65e6a",
475
                "reference": "361c0f545c3172ee26c3d596a0aa03f0cef65e6a",
348 476
                "shasum": ""
349 477
            },
350 478
            "require": {
351
                "php": ">=5.3.0"
479
                "php": "^7.1 || ^8.0"
352 480
            },
353
            "type": "library",
354
            "extra": {
355
                "branch-alias": {
356
                    "dev-master": "1.0.x-dev"
357
                }
481
            "require-dev": {
482
                "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
483
                "phpcompatibility/php-compatibility": "^9.0",
484
                "phpdocumentor/phpdocumentor": "2.*",
485
                "phploc/phploc": "^4.0",
486
                "phpmd/phpmd": "2.*",
487
                "phpunit/phpunit": "^7.0 || ^8.0 || ^9.3",
488
                "sebastian/phpcpd": "^4.0",
489
                "squizlabs/php_codesniffer": "^3.4"
358 490
            },
491
            "type": "library",
359 492
            "autoload": {
360 493
                "psr-4": {
361
                    "Psr\\SimpleCache\\": "src/"
362
                }
494
                    "Matrix\\": "classes/src/"
495
                },
496
                "files": [
497
                    "classes/src/Functions/adjoint.php",
498
                    "classes/src/Functions/antidiagonal.php",
499
                    "classes/src/Functions/cofactors.php",
500
                    "classes/src/Functions/determinant.php",
501
                    "classes/src/Functions/diagonal.php",
502
                    "classes/src/Functions/identity.php",
503
                    "classes/src/Functions/inverse.php",
504
                    "classes/src/Functions/minors.php",
505
                    "classes/src/Functions/trace.php",
506
                    "classes/src/Functions/transpose.php",
507
                    "classes/src/Operations/add.php",
508
                    "classes/src/Operations/directsum.php",
509
                    "classes/src/Operations/subtract.php",
510
                    "classes/src/Operations/multiply.php",
511
                    "classes/src/Operations/divideby.php",
512
                    "classes/src/Operations/divideinto.php"
513
                ]
363 514
            },
364 515
            "notification-url": "https://packagist.org/downloads/",
365 516
            "license": [
@ -367,173 +518,508 @@
367 518
            ],
368 519
            "authors": [
369 520
                {
370
                    "name": "PHP-FIG",
371
                    "homepage": "http://www.php-fig.org/"
521
                    "name": "Mark Baker",
522
                    "email": "mark@demon-angel.eu"
372 523
                }
373 524
            ],
374
            "description": "Common interfaces for simple caching",
525
            "description": "PHP Class for working with matrices",
526
            "homepage": "https://github.com/MarkBaker/PHPMatrix",
375 527
            "keywords": [
376
                "cache",
377
                "caching",
378
                "psr",
379
                "psr-16",
380
                "simple-cache"
528
                "mathematics",
529
                "matrix",
530
                "vector"
381 531
            ],
382
            "time": "2017-10-23T01:57:42+00:00"
532
            "time": "2021-01-23T16:37:31+00:00"
383 533
        },
384 534
        {
385
            "name": "topthink/framework",
386
            "version": "v6.0.7",
535
            "name": "myclabs/php-enum",
536
            "version": "1.8.0",
387 537
            "source": {
388 538
                "type": "git",
389
                "url": "https://github.com/top-think/framework.git",
390
                "reference": "db8fe22520a9660dd5e4c87e304034ac49e39270"
539
                "url": "https://github.com/myclabs/php-enum.git",
540
                "reference": "46cf3d8498b095bd33727b13fd5707263af99421"
391 541
            },
392 542
            "dist": {
393 543
                "type": "zip",
394
                "url": "https://api.github.com/repos/top-think/framework/zipball/db8fe22520a9660dd5e4c87e304034ac49e39270",
395
                "reference": "db8fe22520a9660dd5e4c87e304034ac49e39270",
544
                "url": "https://api.github.com/repos/myclabs/php-enum/zipball/46cf3d8498b095bd33727b13fd5707263af99421",
545
                "reference": "46cf3d8498b095bd33727b13fd5707263af99421",
396 546
                "shasum": ""
397 547
            },
398 548
            "require": {
399 549
                "ext-json": "*",
400
                "ext-mbstring": "*",
401
                "league/flysystem": "^1.0",
402
                "league/flysystem-cached-adapter": "^1.0",
403
                "php": ">=7.1.0",
404
                "psr/container": "~1.0",
405
                "psr/log": "~1.0",
406
                "psr/simple-cache": "^1.0",
407
                "topthink/think-helper": "^3.1.1",
408
                "topthink/think-orm": "^2.0"
550
                "php": "^7.3 || ^8.0"
409 551
            },
410 552
            "require-dev": {
411
                "mikey179/vfsstream": "^1.6",
412
                "mockery/mockery": "^1.2",
413
                "phpunit/phpunit": "^7.0"
553
                "phpunit/phpunit": "^9.5",
554
                "squizlabs/php_codesniffer": "1.*",
555
                "vimeo/psalm": "^4.5.1"
414 556
            },
415 557
            "type": "library",
416 558
            "autoload": {
417
                "files": [],
418 559
                "psr-4": {
419
                    "think\\": "src/think/"
560
                    "MyCLabs\\Enum\\": "src/"
420 561
                }
421 562
            },
422 563
            "notification-url": "https://packagist.org/downloads/",
423 564
            "license": [
424
                "Apache-2.0"
565
                "MIT"
425 566
            ],
426 567
            "authors": [
427 568
                {
428
                    "name": "liu21st",
429
                    "email": "liu21st@gmail.com"
430
                },
431
                {
432
                    "name": "yunwuxin",
433
                    "email": "448901948@qq.com"
569
                    "name": "PHP Enum contributors",
570
                    "homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
434 571
                }
435 572
            ],
436
            "description": "The ThinkPHP Framework.",
437
            "homepage": "http://thinkphp.cn/",
573
            "description": "PHP Enum implementation",
574
            "homepage": "http://github.com/myclabs/php-enum",
438 575
            "keywords": [
439
                "framework",
440
                "orm",
441
                "thinkphp"
576
                "enum"
442 577
            ],
443
            "time": "2021-01-25T14:48:29+00:00"
578
            "funding": [
579
                {
580
                    "url": "https://github.com/mnapoli",
581
                    "type": "github"
582
                },
583
                {
584
                    "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum",
585
                    "type": "tidelift"
586
                }
587
            ],
588
            "time": "2021-02-15T16:11:48+00:00"
444 589
        },
445 590
        {
446
            "name": "topthink/think-helper",
447
            "version": "v3.1.4",
591
            "name": "phpoffice/phpspreadsheet",
592
            "version": "1.17.1",
448 593
            "source": {
449 594
                "type": "git",
450
                "url": "https://github.com/top-think/think-helper.git",
451
                "reference": "c28d37743bda4a0455286ca85b17b5791d626e10"
595
                "url": "https://github.com/PHPOffice/PhpSpreadsheet.git",
596
                "reference": "c55269cb06911575a126dc225a05c0e4626e5fb4"
452 597
            },
453 598
            "dist": {
454 599
                "type": "zip",
455
                "url": "https://api.github.com/repos/top-think/think-helper/zipball/c28d37743bda4a0455286ca85b17b5791d626e10",
456
                "reference": "c28d37743bda4a0455286ca85b17b5791d626e10",
600
                "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/c55269cb06911575a126dc225a05c0e4626e5fb4",
601
                "reference": "c55269cb06911575a126dc225a05c0e4626e5fb4",
457 602
                "shasum": ""
458 603
            },
459 604
            "require": {
460
                "php": ">=7.1.0"
605
                "ext-ctype": "*",
606
                "ext-dom": "*",
607
                "ext-fileinfo": "*",
608
                "ext-gd": "*",
609
                "ext-iconv": "*",
610
                "ext-libxml": "*",
611
                "ext-mbstring": "*",
612
                "ext-simplexml": "*",
613
                "ext-xml": "*",
614
                "ext-xmlreader": "*",
615
                "ext-xmlwriter": "*",
616
                "ext-zip": "*",
617
                "ext-zlib": "*",
618
                "ezyang/htmlpurifier": "^4.13",
619
                "maennchen/zipstream-php": "^2.1",
620
                "markbaker/complex": "^1.5||^2.0",
621
                "markbaker/matrix": "^1.2||^2.0",
622
                "php": "^7.2||^8.0",
623
                "psr/http-client": "^1.0",
624
                "psr/http-factory": "^1.0",
625
                "psr/simple-cache": "^1.0"
626
            },
627
            "require-dev": {
628
                "dompdf/dompdf": "^0.8.5",
629
                "friendsofphp/php-cs-fixer": "^2.18",
630
                "jpgraph/jpgraph": "^4.0",
631
                "mpdf/mpdf": "^8.0",
632
                "phpcompatibility/php-compatibility": "^9.3",
633
                "phpunit/phpunit": "^8.5||^9.3",
634
                "squizlabs/php_codesniffer": "^3.5",
635
                "tecnickcom/tcpdf": "^6.3"
636
            },
637
            "suggest": {
638
                "dompdf/dompdf": "Option for rendering PDF with PDF Writer (doesn't yet support PHP8)",
639
                "jpgraph/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers",
640
                "mpdf/mpdf": "Option for rendering PDF with PDF Writer",
641
                "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer (doesn't yet support PHP8)"
461 642
            },
462 643
            "type": "library",
463 644
            "autoload": {
464 645
                "psr-4": {
465
                    "think\\": "src"
466
                },
467
                "files": [
468
                    "src/helper.php"
469
                ]
646
                    "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet"
647
                }
470 648
            },
471 649
            "notification-url": "https://packagist.org/downloads/",
472 650
            "license": [
473
                "Apache-2.0"
651
                "MIT"
474 652
            ],
475 653
            "authors": [
476 654
                {
477
                    "name": "yunwuxin",
478
                    "email": "448901948@qq.com"
655
                    "name": "Maarten Balliauw",
656
                    "homepage": "https://blog.maartenballiauw.be"
657
                },
658
                {
659
                    "name": "Mark Baker",
660
                    "homepage": "https://markbakeruk.net"
661
                },
662
                {
663
                    "name": "Franck Lefevre",
664
                    "homepage": "https://rootslabs.net"
665
                },
666
                {
667
                    "name": "Erik Tilt"
668
                },
669
                {
670
                    "name": "Adrien Crivelli"
479 671
                }
480 672
            ],
481
            "description": "The ThinkPHP6 Helper Package",
482
            "time": "2019-11-08T08:01:10+00:00"
673
            "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine",
674
            "homepage": "https://github.com/PHPOffice/PhpSpreadsheet",
675
            "keywords": [
676
                "OpenXML",
677
                "excel",
678
                "gnumeric",
679
                "ods",
680
                "php",
681
                "spreadsheet",
682
                "xls",
683
                "xlsx"
684
            ],
685
            "time": "2021-03-02T17:54:11+00:00"
483 686
        },
484 687
        {
485
            "name": "topthink/think-orm",
486
            "version": "v2.0.39",
688
            "name": "psr/cache",
689
            "version": "1.0.1",
487 690
            "source": {
488 691
                "type": "git",
489
                "url": "https://github.com/top-think/think-orm.git",
490
                "reference": "39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7"
692
                "url": "https://github.com/php-fig/cache.git",
693
                "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8"
491 694
            },
492 695
            "dist": {
493 696
                "type": "zip",
494
                "url": "https://api.github.com/repos/top-think/think-orm/zipball/39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7",
495
                "reference": "39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7",
697
                "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8",
698
                "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8",
496 699
                "shasum": ""
497 700
            },
498 701
            "require": {
499
                "ext-json": "*",
500
                "ext-pdo": "*",
501
                "php": ">=7.1.0",
502
                "psr/log": "~1.0",
503
                "psr/simple-cache": "^1.0",
504
                "topthink/think-helper": "^3.1"
505
            },
506
            "require-dev": {
507
                "phpunit/phpunit": "^7|^8|^9.5"
702
                "php": ">=5.3.0"
508 703
            },
509 704
            "type": "library",
705
            "extra": {
706
                "branch-alias": {
707
                    "dev-master": "1.0.x-dev"
708
                   }
709
            },
510 710
            "autoload": {
511 711
                "psr-4": {
512
                    "think\\": "src"
513
                },
514
                "files": [
515
                    "stubs/load_stubs.php"
516
                ]
712
                    "Psr\\Cache\\": "src/"
713
                }
517 714
            },
518 715
            "notification-url": "https://packagist.org/downloads/",
519 716
            "license": [
520
                "Apache-2.0"
717
                "MIT"
521 718
            ],
522 719
            "authors": [
523 720
                {
524
                    "name": "liu21st",
525
                    "email": "liu21st@gmail.com"
721
                    "name": "PHP-FIG",
722
                    "homepage": "http://www.php-fig.org/"
526 723
                }
527 724
            ],
528
            "description": "think orm",
725
            "description": "Common interface for caching libraries",
529 726
            "keywords": [
530
                "database",
531
                "orm"
727
                "cache",
728
                "psr",
729
                "psr-6"
532 730
            ],
533
            "time": "2021-02-26T10:20:00+00:00"
534
        }
535
    ],
536
    "packages-dev": [
731
            "time": "2016-08-06T20:24:11+00:00"
732
        },
733
        {
734
            "name": "psr/container",
735
            "version": "1.1.1",
736
            "source": {
737
                "type": "git",
738
                "url": "https://github.com/php-fig/container.git",
739
                "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"
740
            },
741
            "dist": {
742
                "type": "zip",
743
                "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
744
                "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
745
                "shasum": ""
746
            },
747
            "require": {
748
                "php": ">=7.2.0"
749
            },
750
            "type": "library",
751
            "autoload": {
752
                "psr-4": {
753
                    "Psr\\Container\\": "src/"
754
                }
755
            },
756
            "notification-url": "https://packagist.org/downloads/",
757
            "license": [
758
                "MIT"
759
            ],
760
            "authors": [
761
                {
762
                    "name": "PHP-FIG",
763
                    "homepage": "https://www.php-fig.org/"
764
                }
765
            ],
766
            "description": "Common Container Interface (PHP FIG PSR-11)",
767
            "homepage": "https://github.com/php-fig/container",
768
            "keywords": [
769
                "PSR-11",
770
                "container",
771
                "container-interface",
772
                "container-interop",
773
                "psr"
774
            ],
775
            "time": "2021-03-05T17:36:06+00:00"
776
        },
777
        {
778
            "name": "psr/http-client",
779
            "version": "1.0.1",
780
            "source": {
781
                "type": "git",
782
                "url": "https://github.com/php-fig/http-client.git",
783
                "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
784
            },
785
            "dist": {
786
                "type": "zip",
787
                "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
788
                "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
789
                "shasum": ""
790
            },
791
            "require": {
792
                "php": "^7.0 || ^8.0",
793
                "psr/http-message": "^1.0"
794
            },
795
            "type": "library",
796
            "extra": {
797
                "branch-alias": {
798
                    "dev-master": "1.0.x-dev"
799
                }
800
            },
801
            "autoload": {
802
                "psr-4": {
803
                    "Psr\\Http\\Client\\": "src/"
804
                }
805
            },
806
            "notification-url": "https://packagist.org/downloads/",
807
            "license": [
808
                "MIT"
809
            ],
810
            "authors": [
811
                {
812
                    "name": "PHP-FIG",
813
                    "homepage": "http://www.php-fig.org/"
814
                }
815
            ],
816
            "description": "Common interface for HTTP clients",
817
            "homepage": "https://github.com/php-fig/http-client",
818
            "keywords": [
819
                "http",
820
                "http-client",
821
                "psr",
822
                "psr-18"
823
            ],
824
            "time": "2020-06-29T06:28:15+00:00"
825
        },
826
        {
827
            "name": "psr/http-factory",
828
            "version": "1.0.1",
829
            "source": {
830
                "type": "git",
831
                "url": "https://github.com/php-fig/http-factory.git",
832
                "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
833
            },
834
            "dist": {
835
                "type": "zip",
836
                "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
837
                "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
838
                "shasum": ""
839
            },
840
            "require": {
841
                "php": ">=7.0.0",
842
                "psr/http-message": "^1.0"
843
            },
844
            "type": "library",
845
            "extra": {
846
                "branch-alias": {
847
                    "dev-master": "1.0.x-dev"
848
                }
849
            },
850
            "autoload": {
851
                "psr-4": {
852
                    "Psr\\Http\\Message\\": "src/"
853
                }
854
            },
855
            "notification-url": "https://packagist.org/downloads/",
856
            "license": [
857
                "MIT"
858
            ],
859
            "authors": [
860
                {
861
                    "name": "PHP-FIG",
862
                    "homepage": "http://www.php-fig.org/"
863
                }
864
            ],
865
            "description": "Common interfaces for PSR-7 HTTP message factories",
866
            "keywords": [
867
                "factory",
868
                "http",
869
                "message",
870
                "psr",
871
                "psr-17",
872
                "psr-7",
873
                "request",
874
                "response"
875
            ],
876
            "time": "2019-04-30T12:38:16+00:00"
877
        },
878
        {
879
            "name": "psr/http-message",
880
            "version": "1.0.1",
881
            "source": {
882
                "type": "git",
883
                "url": "https://github.com/php-fig/http-message.git",
884
                "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
885
            },
886
            "dist": {
887
                "type": "zip",
888
                "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
889
                "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
890
                "shasum": ""
891
            },
892
            "require": {
893
                "php": ">=5.3.0"
894
            },
895
            "type": "library",
896
            "extra": {
897
                "branch-alias": {
898
                    "dev-master": "1.0.x-dev"
899
                }
900
            },
901
            "autoload": {
902
                "psr-4": {
903
                    "Psr\\Http\\Message\\": "src/"
904
                }
905
            },
906
            "notification-url": "https://packagist.org/downloads/",
907
            "license": [
908
                "MIT"
909
            ],
910
            "authors": [
911
                {
912
                    "name": "PHP-FIG",
913
                    "homepage": "http://www.php-fig.org/"
914
                }
915
            ],
916
            "description": "Common interface for HTTP messages",
917
            "homepage": "https://github.com/php-fig/http-message",
918
            "keywords": [
919
                "http",
920
                "http-message",
921
                "psr",
922
                "psr-7",
923
                "request",
924
                "response"
925
            ],
926
            "time": "2016-08-06T14:39:51+00:00"
927
        },
928
        {
929
            "name": "psr/log",
930
            "version": "1.1.3",
931
            "source": {
932
                "type": "git",
933
                "url": "https://github.com/php-fig/log.git",
934
                "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
935
            },
936
            "dist": {
937
                "type": "zip",
938
                "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
939
                "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
940
                "shasum": ""
941
            },
942
            "require": {
943
                "php": ">=5.3.0"
944
            },
945
            "type": "library",
946
            "extra": {
947
                "branch-alias": {
948
                    "dev-master": "1.1.x-dev"
949
                }
950
            },
951
            "autoload": {
952
                "psr-4": {
953
                    "Psr\\Log\\": "Psr/Log/"
954
                }
955
            },
956
            "notification-url": "https://packagist.org/downloads/",
957
            "license": [
958
                "MIT"
959
            ],
960
            "authors": [
961
                {
962
                    "name": "PHP-FIG",
963
                    "homepage": "http://www.php-fig.org/"
964
                }
965
            ],
966
            "description": "Common interface for logging libraries",
967
            "homepage": "https://github.com/php-fig/log",
968
            "keywords": [
969
                "log",
970
                "psr",
971
                "psr-3"
972
            ],
973
            "time": "2020-03-23T09:12:05+00:00"
974
        },
975
        {
976
            "name": "psr/simple-cache",
977
            "version": "1.0.1",
978
            "source": {
979
                "type": "git",
980
                "url": "https://github.com/php-fig/simple-cache.git",
981
                "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b"
982
            },
983
            "dist": {
984
                "type": "zip",
985
                "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
986
                "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
987
                "shasum": ""
988
            },
989
            "require": {
990
                "php": ">=5.3.0"
991
            },
992
            "type": "library",
993
            "extra": {
994
                "branch-alias": {
995
                    "dev-master": "1.0.x-dev"
996
                }
997
            },
998
            "autoload": {
999
                "psr-4": {
1000
                    "Psr\\SimpleCache\\": "src/"
1001
                }
1002
            },
1003
            "notification-url": "https://packagist.org/downloads/",
1004
            "license": [
1005
                "MIT"
1006
            ],
1007
            "authors": [
1008
                {
1009
                    "name": "PHP-FIG",
1010
                    "homepage": "http://www.php-fig.org/"
1011
                }
1012
            ],
1013
            "description": "Common interfaces for simple caching",
1014
            "keywords": [
1015
                "cache",
1016
                "caching",
1017
                "psr",
1018
                "psr-16",
1019
                "simple-cache"
1020
            ],
1021
            "time": "2017-10-23T01:57:42+00:00"
1022
        },
537 1023
        {
538 1024
            "name": "symfony/polyfill-mbstring",
539 1025
            "version": "v1.22.1",
@ -611,6 +1097,282 @@
611 1097
            ],
612 1098
            "time": "2021-01-22T09:19:47+00:00"
613 1099
        },
1100
        {
1101
            "name": "topthink/framework",
1102
            "version": "v6.0.7",
1103
            "source": {
1104
                "type": "git",
1105
                "url": "https://github.com/top-think/framework.git",
1106
                "reference": "db8fe22520a9660dd5e4c87e304034ac49e39270"
1107
            },
1108
            "dist": {
1109
                "type": "zip",
1110
                "url": "https://api.github.com/repos/top-think/framework/zipball/db8fe22520a9660dd5e4c87e304034ac49e39270",
1111
                "reference": "db8fe22520a9660dd5e4c87e304034ac49e39270",
1112
                "shasum": ""
1113
            },
1114
            "require": {
1115
                "ext-json": "*",
1116
                "ext-mbstring": "*",
1117
                "league/flysystem": "^1.0",
1118
                "league/flysystem-cached-adapter": "^1.0",
1119
                "php": ">=7.1.0",
1120
                "psr/container": "~1.0",
1121
                "psr/log": "~1.0",
1122
                "psr/simple-cache": "^1.0",
1123
                "topthink/think-helper": "^3.1.1",
1124
                "topthink/think-orm": "^2.0"
1125
            },
1126
            "require-dev": {
1127
                "mikey179/vfsstream": "^1.6",
1128
                "mockery/mockery": "^1.2",
1129
                "phpunit/phpunit": "^7.0"
1130
            },
1131
            "type": "library",
1132
            "autoload": {
1133
                "files": [],
1134
                "psr-4": {
1135
                    "think\\": "src/think/"
1136
                }
1137
            },
1138
            "notification-url": "https://packagist.org/downloads/",
1139
            "license": [
1140
                "Apache-2.0"
1141
            ],
1142
            "authors": [
1143
                {
1144
                    "name": "liu21st",
1145
                    "email": "liu21st@gmail.com"
1146
                },
1147
                {
1148
                    "name": "yunwuxin",
1149
                    "email": "448901948@qq.com"
1150
                }
1151
            ],
1152
            "description": "The ThinkPHP Framework.",
1153
            "homepage": "http://thinkphp.cn/",
1154
            "keywords": [
1155
                "framework",
1156
                "orm",
1157
                "thinkphp"
1158
            ],
1159
            "time": "2021-01-25T14:48:29+00:00"
1160
        },
1161
        {
1162
            "name": "topthink/think-captcha",
1163
            "version": "v3.0.3",
1164
            "source": {
1165
                "type": "git",
1166
                "url": "https://github.com/top-think/think-captcha.git",
1167
                "reference": "1eef3717c1bcf4f5bbe2d1a1c704011d330a8b55"
1168
            },
1169
            "dist": {
1170
                "type": "zip",
1171
                "url": "https://api.github.com/repos/top-think/think-captcha/zipball/1eef3717c1bcf4f5bbe2d1a1c704011d330a8b55",
1172
                "reference": "1eef3717c1bcf4f5bbe2d1a1c704011d330a8b55",
1173
                "shasum": ""
1174
            },
1175
            "require": {
1176
                "topthink/framework": "^6.0.0"
1177
            },
1178
            "type": "library",
1179
            "extra": {
1180
                "think": {
1181
                    "services": [
1182
                        "think\\captcha\\CaptchaService"
1183
                    ],
1184
                    "config": {
1185
                        "captcha": "src/config.php"
1186
                    }
1187
                }
1188
            },
1189
            "autoload": {
1190
                "psr-4": {
1191
                    "think\\captcha\\": "src/"
1192
                },
1193
                "files": [
1194
                    "src/helper.php"
1195
                ]
1196
            },
1197
            "notification-url": "https://packagist.org/downloads/",
1198
            "license": [
1199
                "Apache-2.0"
1200
            ],
1201
            "authors": [
1202
                {
1203
                    "name": "yunwuxin",
1204
                    "email": "448901948@qq.com"
1205
                }
1206
            ],
1207
            "description": "captcha package for thinkphp",
1208
            "time": "2020-05-19T10:55:45+00:00"
1209
        },
1210
        {
1211
            "name": "topthink/think-helper",
1212
            "version": "v3.1.4",
1213
            "source": {
1214
                "type": "git",
1215
                "url": "https://github.com/top-think/think-helper.git",
1216
                "reference": "c28d37743bda4a0455286ca85b17b5791d626e10"
1217
            },
1218
            "dist": {
1219
                "type": "zip",
1220
                "url": "https://api.github.com/repos/top-think/think-helper/zipball/c28d37743bda4a0455286ca85b17b5791d626e10",
1221
                "reference": "c28d37743bda4a0455286ca85b17b5791d626e10",
1222
                "shasum": ""
1223
            },
1224
            "require": {
1225
                "php": ">=7.1.0"
1226
            },
1227
            "type": "library",
1228
            "autoload": {
1229
                "psr-4": {
1230
                    "think\\": "src"
1231
                },
1232
                "files": [
1233
                    "src/helper.php"
1234
                ]
1235
            },
1236
            "notification-url": "https://packagist.org/downloads/",
1237
            "license": [
1238
                "Apache-2.0"
1239
            ],
1240
            "authors": [
1241
                {
1242
                    "name": "yunwuxin",
1243
                    "email": "448901948@qq.com"
1244
                }
1245
            ],
1246
            "description": "The ThinkPHP6 Helper Package",
1247
            "time": "2019-11-08T08:01:10+00:00"
1248
        },
1249
        {
1250
            "name": "topthink/think-orm",
1251
            "version": "v2.0.39",
1252
            "source": {
1253
                "type": "git",
1254
                "url": "https://github.com/top-think/think-orm.git",
1255
                "reference": "39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7"
1256
            },
1257
            "dist": {
1258
                "type": "zip",
1259
                "url": "https://api.github.com/repos/top-think/think-orm/zipball/39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7",
1260
                "reference": "39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7",
1261
                "shasum": ""
1262
            },
1263
            "require": {
1264
                "ext-json": "*",
1265
                "ext-pdo": "*",
1266
                "php": ">=7.1.0",
1267
                "psr/log": "~1.0",
1268
                "psr/simple-cache": "^1.0",
1269
                "topthink/think-helper": "^3.1"
1270
            },
1271
            "require-dev": {
1272
                "phpunit/phpunit": "^7|^8|^9.5"
1273
            },
1274
            "type": "library",
1275
            "autoload": {
1276
                "psr-4": {
1277
                    "think\\": "src"
1278
                },
1279
                "files": [
1280
                    "stubs/load_stubs.php"
1281
                ]
1282
            },
1283
            "notification-url": "https://packagist.org/downloads/",
1284
            "license": [
1285
                "Apache-2.0"
1286
            ],
1287
            "authors": [
1288
                {
1289
                    "name": "liu21st",
1290
                    "email": "liu21st@gmail.com"
1291
                }
1292
            ],
1293
            "description": "think orm",
1294
            "keywords": [
1295
                "database",
1296
                "orm"
1297
            ],
1298
            "time": "2021-02-26T10:20:00+00:00"
1299
        },
1300
        {
1301
            "name": "topthink/think-template",
1302
            "version": "v2.0.8",
1303
            "source": {
1304
                "type": "git",
1305
                "url": "https://github.com/top-think/think-template.git",
1306
                "reference": "abfc293f74f9ef5127b5c416310a01fe42e59368"
1307
            },
1308
            "dist": {
1309
                "type": "zip",
1310
                "url": "https://api.github.com/repos/top-think/think-template/zipball/abfc293f74f9ef5127b5c416310a01fe42e59368",
1311
                "reference": "abfc293f74f9ef5127b5c416310a01fe42e59368",
1312
                "shasum": ""
1313
            },
1314
            "require": {
1315
                "php": ">=7.1.0",
1316
                "psr/simple-cache": "^1.0"
1317
            },
1318
            "type": "library",
1319
            "autoload": {
1320
                "psr-4": {
1321
                    "think\\": "src"
1322
                }
1323
            },
1324
            "notification-url": "https://packagist.org/downloads/",
1325
            "license": [
1326
                "Apache-2.0"
1327
            ],
1328
            "authors": [
1329
                {
1330
                    "name": "liu21st",
1331
                    "email": "liu21st@gmail.com"
1332
                }
1333
            ],
1334
            "description": "the php template engine",
1335
            "time": "2020-12-10T07:52:03+00:00"
1336
        },
1337
        {
1338
            "name": "topthink/think-view",
1339
            "version": "v1.0.14",
1340
            "source": {
1341
                "type": "git",
1342
                "url": "https://github.com/top-think/think-view.git",
1343
                "reference": "edce0ae2c9551ab65f9e94a222604b0dead3576d"
1344
            },
1345
            "dist": {
1346
                "type": "zip",
1347
                "url": "https://api.github.com/repos/top-think/think-view/zipball/edce0ae2c9551ab65f9e94a222604b0dead3576d",
1348
                "reference": "edce0ae2c9551ab65f9e94a222604b0dead3576d",
1349
                "shasum": ""
1350
            },
1351
            "require": {
1352
                "php": ">=7.1.0",
1353
                "topthink/think-template": "^2.0"
1354
            },
1355
            "type": "library",
1356
            "autoload": {
1357
                "psr-4": {
1358
                    "think\\view\\driver\\": "src"
1359
                }
1360
            },
1361
            "notification-url": "https://packagist.org/downloads/",
1362
            "license": [
1363
                "Apache-2.0"
1364
            ],
1365
            "authors": [
1366
                {
1367
                    "name": "liu21st",
1368
                    "email": "liu21st@gmail.com"
1369
                }
1370
            ],
1371
            "description": "thinkphp template driver",
1372
            "time": "2019-11-06T11:40:13+00:00"
1373
        }
1374
    ],
1375
    "packages-dev": [
614 1376
        {
615 1377
            "name": "symfony/polyfill-php72",
616 1378
            "version": "v1.22.1",

+ 39 - 0
config/captcha.php

@ -0,0 +1,39 @@
1
<?php
2
// +----------------------------------------------------------------------
3
// | Captcha配置文件
4
// +----------------------------------------------------------------------
5
6
return [
7
    //验证码位数
8
    'length'   => 5,
9
    // 验证码字符集合
10
    'codeSet'  => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
11
    // 验证码过期时间
12
    'expire'   => 1800,
13
    // 是否使用中文验证码
14
    'useZh'    => false,
15
    // 是否使用算术验证码
16
    'math'     => false,
17
    // 是否使用背景图
18
    'useImgBg' => false,
19
    //验证码字符大小
20
    'fontSize' => 25,
21
    // 是否使用混淆曲线
22
    'useCurve' => true,
23
    //是否添加杂点
24
    'useNoise' => true,
25
    // 验证码字体 不设置则随机
26
    'fontttf'  => '',
27
    //背景颜色
28
    'bg'       => [243, 251, 254],
29
    // 验证码图片高度
30
    'imageH'   => 0,
31
    // 验证码图片宽度
32
    'imageW'   => 0,
33
34
    // 添加额外的验证码设置
35
    // verify => [
36
    //     'length'=>4,
37
    //    ...
38
    //],
39
];

+ 12 - 0
config/jump.php

@ -0,0 +1,12 @@
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: liliuwei
5
 * Date: 2019/5/23
6
 * Time: 22:50
7
 */
8
return[
9
    // 默认跳转页面对应的模板文件
10
    'dispatch_success_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl',
11
    'dispatch_error_tmpl'   => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl',
12
];

BIN
public/favicon.ico


+ 1 - 0
view/index/index.html

@ -0,0 +1 @@
1
teest

+ 51 - 0
view/login/index.html

@ -0,0 +1,51 @@
1
<!DOCTYPE html
2
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
4
5
<head>
6
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
	<link href="/static/css/style.css" rel="stylesheet" type="text/css">
8
	<title>Suryee</title>
9
</head>
10
11
<body class="login">
12
13
	<div class="login_m">
14
		<div class="login_logo"><img src="/static/images/logo.png" width="220" height="100"></div>
15
		<div class="login_boder">
16
			<form id="login_form" action="login/index" method="POST">
17
				<div class="login_padding">
18
					<h2>用户名</h2>
19
					<label>
20
						<input type="text" name="username" id="username" class="txt_input txt_input2" value="" placeholder="请输入用户名">
21
					</label>
22
					<h2>密码</h2>
23
					<label>
24
						<input type="password" name="password" id="password" class="txt_input" value=""
25
							placeholder="请输入密码">
26
					</label>
27
					<h2>验证码</h2>
28
						<label>
29
							<input type="text" name="captcha" id="captcha" class="txt_input3" value="" placeholder="请输入验证码">
30
							<img src="{:captcha_src()}" class="verify_img" width="120px" height="40px" onclick="this.src='{:captcha_src()}?tmp='+Math.random()">
31
						</label>
32
					<p class="forgot"><a href="javascript:alert('请联系管理员');">忘记密码?</a></p>
33
					<div class="rem_sub">
34
						<label>
35
							<input type="submit" class="sub_button" name="button" id="button" value="登录" style="">
36
						</label>
37
					</div>
38
				</div>
39
			</form>
40
		</div>
41
		<!--login_boder end-->
42
	</div>
43
	<!--login_m end-->
44
45
	<div class="copyrights"> Develop By 
46
		<a href="mailto:huwhois@163.com">huwhois@163.com</a>
47
	</div>
48
49
</body>
50
51
</html>