diff --git a/app/login/view/index/shangma_log.html b/app/login/view/index/shangma_log.html index a18b326e..c5c8f5bf 100755 --- a/app/login/view/index/shangma_log.html +++ b/app/login/view/index/shangma_log.html @@ -49,7 +49,7 @@
- 升级ThinkPHP到v6.07
+ 升级ThinkPHP到v6.08
升级LayUi到2.6.5
根据功能拆分js方法,增加一些js方法
大部分菜单或复选框改成ajax获取。
diff --git a/composer.json b/composer.json
index ea911d47..43028a52 100755
--- a/composer.json
+++ b/composer.json
@@ -51,5 +51,11 @@
"@php think service:discover",
"@php think vendor:publish"
]
+ },
+ "repositories": {
+ "packagist": {
+ "type": "composer",
+ "url": "https://mirrors.aliyun.com/composer/"
+ }
}
}
diff --git a/composer.lock b/composer.lock
index b926a850..4e0162c0 100755
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "51867953ce60a0584b70e2e67d9d5250",
+ "content-hash": "91223e260218162e4310061726c4eaf7",
"packages": [
{
"name": "ezyang/htmlpurifier",
@@ -18,7 +18,13 @@
"type": "zip",
"url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
"reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=5.2"
@@ -72,7 +78,13 @@
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/9be3b16c877d477357c015cec057548cf9b2a14a",
"reference": "9be3b16c877d477357c015cec057548cf9b2a14a",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"ext-fileinfo": "*",
@@ -167,7 +179,13 @@
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem-cached-adapter/zipball/d1925efb2207ac4be3ad0c40b8277175f99ffaff",
"reference": "d1925efb2207ac4be3ad0c40b8277175f99ffaff",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"league/flysystem": "~1.0",
@@ -218,7 +236,13 @@
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
"reference": "3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"ext-fileinfo": "*",
@@ -274,7 +298,13 @@
"type": "zip",
"url": "https://api.github.com/repos/liliuwei/thinkphp-auth/zipball/1eddf9fe6c549c11f1b3a212aaaf7a50165412c9",
"reference": "1eddf9fe6c549c11f1b3a212aaaf7a50165412c9",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.0",
@@ -326,7 +356,13 @@
"type": "zip",
"url": "https://api.github.com/repos/liliuwei/thinkphp-jump/zipball/481d41b922095f08230609919be5d19354c50540",
"reference": "481d41b922095f08230609919be5d19354c50540",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.0",
@@ -383,7 +419,13 @@
"type": "zip",
"url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/c4c5803cc1f93df3d2448478ef79394a5981cc58",
"reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"myclabs/php-enum": "^1.5",
@@ -454,7 +496,13 @@
"type": "zip",
"url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/9999f1432fae467bc93c53f357105b4c31bb994c",
"reference": "9999f1432fae467bc93c53f357105b4c31bb994c",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": "^7.2 || ^8.0"
@@ -553,7 +601,13 @@
"type": "zip",
"url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/361c0f545c3172ee26c3d596a0aa03f0cef65e6a",
"reference": "361c0f545c3172ee26c3d596a0aa03f0cef65e6a",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": "^7.1 || ^8.0"
@@ -627,7 +681,13 @@
"type": "zip",
"url": "https://api.github.com/repos/myclabs/php-enum/zipball/46cf3d8498b095bd33727b13fd5707263af99421",
"reference": "46cf3d8498b095bd33727b13fd5707263af99421",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"ext-json": "*",
@@ -687,7 +747,13 @@
"type": "zip",
"url": "https://api.github.com/repos/overtrue/pinyin/zipball/083de406907d42df2e0feaaeb83f1a3c2e0095eb",
"reference": "083de406907d42df2e0feaaeb83f1a3c2e0095eb",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1"
@@ -760,7 +826,13 @@
"type": "zip",
"url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/c55269cb06911575a126dc225a05c0e4626e5fb4",
"reference": "c55269cb06911575a126dc225a05c0e4626e5fb4",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"ext-ctype": "*",
@@ -861,7 +933,13 @@
"type": "zip",
"url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8",
"reference": "d11b50ad223250cf17b86e38383413f5a6764bf8",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=5.3.0"
@@ -910,7 +988,13 @@
"type": "zip",
"url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
"reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.2.0"
@@ -958,7 +1042,13 @@
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
"reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": "^7.0 || ^8.0",
@@ -1010,7 +1100,13 @@
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
"reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.0.0",
@@ -1065,7 +1161,13 @@
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=5.3.0"
@@ -1108,17 +1210,23 @@
},
{
"name": "psr/log",
- "version": "1.1.3",
+ "version": "1.1.4",
"source": {
"type": "git",
"url": "https://github.com/php-fig/log.git",
- "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
+ "reference": "d49695b909c3b7628b6289db5479a1c204601f11"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
- "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
- "shasum": ""
+ "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
+ "reference": "d49695b909c3b7628b6289db5479a1c204601f11",
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=5.3.0"
@@ -1141,7 +1249,7 @@
"authors": [
{
"name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
+ "homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for logging libraries",
@@ -1152,9 +1260,9 @@
"psr-3"
],
"support": {
- "source": "https://github.com/php-fig/log/tree/1.1.3"
+ "source": "https://github.com/php-fig/log/tree/1.1.4"
},
- "time": "2020-03-23T09:12:05+00:00"
+ "time": "2021-05-03T11:20:27+00:00"
},
{
"name": "psr/simple-cache",
@@ -1168,7 +1276,13 @@
"type": "zip",
"url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
"reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=5.3.0"
@@ -1219,7 +1333,13 @@
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/5232de97ee3b75b0360528dae24e73db49566ab1",
"reference": "5232de97ee3b75b0360528dae24e73db49566ab1",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1"
@@ -1289,17 +1409,23 @@
},
{
"name": "topthink/framework",
- "version": "v6.0.7",
+ "version": "v6.0.8",
"source": {
"type": "git",
"url": "https://github.com/top-think/framework.git",
- "reference": "db8fe22520a9660dd5e4c87e304034ac49e39270"
+ "reference": "4789343672aef06d571d556da369c0e156609bce"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/top-think/framework/zipball/db8fe22520a9660dd5e4c87e304034ac49e39270",
- "reference": "db8fe22520a9660dd5e4c87e304034ac49e39270",
- "shasum": ""
+ "url": "https://api.github.com/repos/top-think/framework/zipball/4789343672aef06d571d556da369c0e156609bce",
+ "reference": "4789343672aef06d571d556da369c0e156609bce",
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"ext-json": "*",
@@ -1348,9 +1474,9 @@
],
"support": {
"issues": "https://github.com/top-think/framework/issues",
- "source": "https://github.com/top-think/framework/tree/v6.0.7"
+ "source": "https://github.com/top-think/framework/tree/v6.0.8"
},
- "time": "2021-01-25T14:48:29+00:00"
+ "time": "2021-04-27T00:41:08+00:00"
},
{
"name": "topthink/think-captcha",
@@ -1364,7 +1490,13 @@
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-captcha/zipball/1eef3717c1bcf4f5bbe2d1a1c704011d330a8b55",
"reference": "1eef3717c1bcf4f5bbe2d1a1c704011d330a8b55",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"topthink/framework": "^6.0.0"
@@ -1417,7 +1549,13 @@
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-helper/zipball/c28d37743bda4a0455286ca85b17b5791d626e10",
"reference": "c28d37743bda4a0455286ca85b17b5791d626e10",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.0"
@@ -1460,7 +1598,13 @@
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-migration/zipball/5717d9e5f3ea745f6dbfd1e30b4402aaadff9a79",
"reference": "5717d9e5f3ea745f6dbfd1e30b4402aaadff9a79",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"topthink/framework": "^6.0.0",
@@ -1514,7 +1658,13 @@
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-multi-app/zipball/ccaad7c2d33f42cb1cc2a78d6610aaec02cea4c3",
"reference": "ccaad7c2d33f42cb1cc2a78d6610aaec02cea4c3",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.0",
@@ -1552,17 +1702,23 @@
},
{
"name": "topthink/think-orm",
- "version": "v2.0.39",
+ "version": "v2.0.40",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-orm.git",
- "reference": "39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7"
+ "reference": "1119d979b850849f3725856460cf108eec1c3eb8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/top-think/think-orm/zipball/39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7",
- "reference": "39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7",
- "shasum": ""
+ "url": "https://api.github.com/repos/top-think/think-orm/zipball/1119d979b850849f3725856460cf108eec1c3eb8",
+ "reference": "1119d979b850849f3725856460cf108eec1c3eb8",
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"ext-json": "*",
@@ -1601,9 +1757,9 @@
],
"support": {
"issues": "https://github.com/top-think/think-orm/issues",
- "source": "https://github.com/top-think/think-orm/tree/v2.0.39"
+ "source": "https://github.com/top-think/think-orm/tree/v2.0.40"
},
- "time": "2021-02-26T10:20:00+00:00"
+ "time": "2021-04-19T13:29:37+00:00"
},
{
"name": "topthink/think-template",
@@ -1617,7 +1773,13 @@
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-template/zipball/abfc293f74f9ef5127b5c416310a01fe42e59368",
"reference": "abfc293f74f9ef5127b5c416310a01fe42e59368",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.0",
@@ -1658,7 +1820,13 @@
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-view/zipball/edce0ae2c9551ab65f9e94a222604b0dead3576d",
"reference": "edce0ae2c9551ab65f9e94a222604b0dead3576d",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.0",
@@ -1699,7 +1867,13 @@
"type": "zip",
"url": "https://api.github.com/repos/wamkj/thinkphp6.0-databackup/zipball/28a0e406d827132942723a3c9f69bb20c98e652f",
"reference": "28a0e406d827132942723a3c9f69bb20c98e652f",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.0",
@@ -1744,7 +1918,13 @@
"type": "zip",
"url": "https://api.github.com/repos/whitehat101/apr1-md5/zipball/8b261c9fc0481b4e9fa9d01c6ca70867b5d5e819",
"reference": "8b261c9fc0481b4e9fa9d01c6ca70867b5d5e819",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=5.3.0"
@@ -1794,7 +1974,13 @@
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9",
"reference": "cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1"
@@ -1870,7 +2056,13 @@
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dc3063ba22c2a1fd2f45ed856374d79114998f91",
"reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1"
@@ -1943,17 +2135,23 @@
},
{
"name": "symfony/var-dumper",
- "version": "v4.4.21",
+ "version": "v4.4.22",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
- "reference": "0da0e174f728996f5d5072d6a9f0a42259dbc806"
+ "reference": "c194bcedde6295f3ec3e9eba1f5d484ea97c41a7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/0da0e174f728996f5d5072d6a9f0a42259dbc806",
- "reference": "0da0e174f728996f5d5072d6a9f0a42259dbc806",
- "shasum": ""
+ "url": "https://api.github.com/repos/symfony/var-dumper/zipball/c194bcedde6295f3ec3e9eba1f5d484ea97c41a7",
+ "reference": "c194bcedde6295f3ec3e9eba1f5d484ea97c41a7",
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.3",
@@ -2012,7 +2210,7 @@
"dump"
],
"support": {
- "source": "https://github.com/symfony/var-dumper/tree/v4.4.21"
+ "source": "https://github.com/symfony/var-dumper/tree/v4.4.22"
},
"funding": [
{
@@ -2028,7 +2226,7 @@
"type": "tidelift"
}
],
- "time": "2021-03-27T19:49:03+00:00"
+ "time": "2021-04-19T13:36:17+00:00"
},
{
"name": "topthink/think-trace",
@@ -2042,7 +2240,13 @@
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-trace/zipball/9a9fa8f767b6c66c5a133ad21ca1bc96ad329444",
"reference": "9a9fa8f767b6c66c5a133ad21ca1bc96ad329444",
- "shasum": ""
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.0",
diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php
index df25b5cc..de226f4b 100644
--- a/vendor/composer/InstalledVersions.php
+++ b/vendor/composer/InstalledVersions.php
@@ -30,7 +30,7 @@ private static $installed = array (
'aliases' =>
array (
),
- 'reference' => 'a88c8eaf776fef8d0b1fb0a9cc7c2b0af47400a1',
+ 'reference' => 'b0cc71eaedb030831468effc868c449ed24f7aff',
'name' => 'topthink/think',
),
'versions' =>
@@ -190,12 +190,12 @@ private static $installed = array (
),
'psr/log' =>
array (
- 'pretty_version' => '1.1.3',
- 'version' => '1.1.3.0',
+ 'pretty_version' => '1.1.4',
+ 'version' => '1.1.4.0',
'aliases' =>
array (
),
- 'reference' => '0f73288fd15629204f9d42b7055f72dacbe811fc',
+ 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11',
),
'psr/simple-cache' =>
array (
@@ -235,21 +235,21 @@ private static $installed = array (
),
'symfony/var-dumper' =>
array (
- 'pretty_version' => 'v4.4.21',
- 'version' => '4.4.21.0',
+ 'pretty_version' => 'v4.4.22',
+ 'version' => '4.4.22.0',
'aliases' =>
array (
),
- 'reference' => '0da0e174f728996f5d5072d6a9f0a42259dbc806',
+ 'reference' => 'c194bcedde6295f3ec3e9eba1f5d484ea97c41a7',
),
'topthink/framework' =>
array (
- 'pretty_version' => 'v6.0.7',
- 'version' => '6.0.7.0',
+ 'pretty_version' => 'v6.0.8',
+ 'version' => '6.0.8.0',
'aliases' =>
array (
),
- 'reference' => 'db8fe22520a9660dd5e4c87e304034ac49e39270',
+ 'reference' => '4789343672aef06d571d556da369c0e156609bce',
),
'topthink/think' =>
array (
@@ -258,7 +258,7 @@ private static $installed = array (
'aliases' =>
array (
),
- 'reference' => 'a88c8eaf776fef8d0b1fb0a9cc7c2b0af47400a1',
+ 'reference' => 'b0cc71eaedb030831468effc868c449ed24f7aff',
),
'topthink/think-captcha' =>
array (
@@ -298,12 +298,12 @@ private static $installed = array (
),
'topthink/think-orm' =>
array (
- 'pretty_version' => 'v2.0.39',
- 'version' => '2.0.39.0',
+ 'pretty_version' => 'v2.0.40',
+ 'version' => '2.0.40.0',
'aliases' =>
array (
),
- 'reference' => '39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7',
+ 'reference' => '1119d979b850849f3725856460cf108eec1c3eb8',
),
'topthink/think-template' =>
array (
diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php
index d3b298a2..bfd1d363 100755
--- a/vendor/composer/autoload_files.php
+++ b/vendor/composer/autoload_files.php
@@ -70,7 +70,7 @@ return array(
'eef6fa3879d3efa347cd24d5eb348f85' => $vendorDir . '/markbaker/matrix/classes/src/Operations/divideinto.php',
'25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php',
'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
- '1cfd2761b63b0a29ed23657ea394cb2d' => $vendorDir . '/topthink/think-captcha/src/helper.php',
'dc1275c308c5b416beb314b6317daca2' => $vendorDir . '/overtrue/pinyin/src/const.php',
+ '1cfd2761b63b0a29ed23657ea394cb2d' => $vendorDir . '/topthink/think-captcha/src/helper.php',
'667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php',
);
diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php
index 8925a433..37e7f732 100755
--- a/vendor/composer/autoload_psr4.php
+++ b/vendor/composer/autoload_psr4.php
@@ -12,7 +12,7 @@ return array(
'think\\migration\\' => array($vendorDir . '/topthink/think-migration/src'),
'think\\captcha\\' => array($vendorDir . '/topthink/think-captcha/src'),
'think\\app\\' => array($vendorDir . '/topthink/think-multi-app/src'),
- 'think\\' => array($vendorDir . '/topthink/framework/src/think', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src', $vendorDir . '/topthink/think-template/src'),
+ 'think\\' => array($vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-template/src', $vendorDir . '/topthink/think-orm/src', $vendorDir . '/topthink/framework/src/think'),
'liliuwei\\think\\' => array($vendorDir . '/liliuwei/thinkphp-auth/src', $vendorDir . '/liliuwei/thinkphp-jump/src'),
'app\\' => array($baseDir . '/app'),
'ZipStream\\' => array($vendorDir . '/maennchen/zipstream-php/src'),
diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php
index 889793d8..ccad7407 100755
--- a/vendor/composer/autoload_static.php
+++ b/vendor/composer/autoload_static.php
@@ -71,8 +71,8 @@ class ComposerStaticInitb9e4f0134ed78dbdc8a5ce7a1ab58175
'eef6fa3879d3efa347cd24d5eb348f85' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/divideinto.php',
'25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
- '1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php',
'dc1275c308c5b416beb314b6317daca2' => __DIR__ . '/..' . '/overtrue/pinyin/src/const.php',
+ '1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php',
'667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php',
);
@@ -172,10 +172,10 @@ class ComposerStaticInitb9e4f0134ed78dbdc8a5ce7a1ab58175
),
'think\\' =>
array (
- 0 => __DIR__ . '/..' . '/topthink/framework/src/think',
- 1 => __DIR__ . '/..' . '/topthink/think-helper/src',
+ 0 => __DIR__ . '/..' . '/topthink/think-helper/src',
+ 1 => __DIR__ . '/..' . '/topthink/think-template/src',
2 => __DIR__ . '/..' . '/topthink/think-orm/src',
- 3 => __DIR__ . '/..' . '/topthink/think-template/src',
+ 3 => __DIR__ . '/..' . '/topthink/framework/src/think',
),
'liliuwei\\think\\' =>
array (
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index 8fcd0097..633cb3c1 100755
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -1152,17 +1152,17 @@
},
{
"name": "psr/log",
- "version": "1.1.3",
- "version_normalized": "1.1.3.0",
+ "version": "1.1.4",
+ "version_normalized": "1.1.4.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/log.git",
- "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
+ "reference": "d49695b909c3b7628b6289db5479a1c204601f11"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
- "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
+ "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
+ "reference": "d49695b909c3b7628b6289db5479a1c204601f11",
"shasum": "",
"mirrors": [
{
@@ -1174,7 +1174,7 @@
"require": {
"php": ">=5.3.0"
},
- "time": "2020-03-23T09:12:05+00:00",
+ "time": "2021-05-03T11:20:27+00:00",
"type": "library",
"extra": {
"branch-alias": {
@@ -1194,7 +1194,7 @@
"authors": [
{
"name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
+ "homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for logging libraries",
@@ -1204,6 +1204,9 @@
"psr",
"psr-3"
],
+ "support": {
+ "source": "https://github.com/php-fig/log/tree/1.1.4"
+ },
"install-path": "../psr/log"
},
{
@@ -1480,18 +1483,24 @@
},
{
"name": "symfony/var-dumper",
- "version": "v4.4.21",
- "version_normalized": "4.4.21.0",
+ "version": "v4.4.22",
+ "version_normalized": "4.4.22.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
- "reference": "0da0e174f728996f5d5072d6a9f0a42259dbc806"
+ "reference": "c194bcedde6295f3ec3e9eba1f5d484ea97c41a7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/0da0e174f728996f5d5072d6a9f0a42259dbc806",
- "reference": "0da0e174f728996f5d5072d6a9f0a42259dbc806",
- "shasum": ""
+ "url": "https://api.github.com/repos/symfony/var-dumper/zipball/c194bcedde6295f3ec3e9eba1f5d484ea97c41a7",
+ "reference": "c194bcedde6295f3ec3e9eba1f5d484ea97c41a7",
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
},
"require": {
"php": ">=7.1.3",
@@ -1514,7 +1523,7 @@
"ext-intl": "To show region name in time zone dump",
"symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script"
},
- "time": "2021-03-27T19:49:03+00:00",
+ "time": "2021-04-19T13:36:17+00:00",
"bin": [
"Resources/bin/var-dump-server"
],
@@ -1552,7 +1561,7 @@
"dump"
],
"support": {
- "source": "https://github.com/symfony/var-dumper/tree/v4.4.21"
+ "source": "https://github.com/symfony/var-dumper/tree/v4.4.22"
},
"funding": [
{
@@ -1572,17 +1581,17 @@
},
{
"name": "topthink/framework",
- "version": "v6.0.7",
- "version_normalized": "6.0.7.0",
+ "version": "v6.0.8",
+ "version_normalized": "6.0.8.0",
"source": {
"type": "git",
"url": "https://github.com/top-think/framework.git",
- "reference": "db8fe22520a9660dd5e4c87e304034ac49e39270"
+ "reference": "4789343672aef06d571d556da369c0e156609bce"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/top-think/framework/zipball/db8fe22520a9660dd5e4c87e304034ac49e39270",
- "reference": "db8fe22520a9660dd5e4c87e304034ac49e39270",
+ "url": "https://api.github.com/repos/top-think/framework/zipball/4789343672aef06d571d556da369c0e156609bce",
+ "reference": "4789343672aef06d571d556da369c0e156609bce",
"shasum": "",
"mirrors": [
{
@@ -1608,7 +1617,7 @@
"mockery/mockery": "^1.2",
"phpunit/phpunit": "^7.0"
},
- "time": "2021-01-25T14:48:29+00:00",
+ "time": "2021-04-27T00:41:08+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@@ -1638,6 +1647,10 @@
"orm",
"thinkphp"
],
+ "support": {
+ "issues": "https://github.com/top-think/framework/issues",
+ "source": "https://github.com/top-think/framework/tree/v6.0.8"
+ },
"install-path": "../topthink/framework"
},
{
@@ -1860,17 +1873,17 @@
},
{
"name": "topthink/think-orm",
- "version": "v2.0.39",
- "version_normalized": "2.0.39.0",
+ "version": "v2.0.40",
+ "version_normalized": "2.0.40.0",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-orm.git",
- "reference": "39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7"
+ "reference": "1119d979b850849f3725856460cf108eec1c3eb8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/top-think/think-orm/zipball/39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7",
- "reference": "39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7",
+ "url": "https://api.github.com/repos/top-think/think-orm/zipball/1119d979b850849f3725856460cf108eec1c3eb8",
+ "reference": "1119d979b850849f3725856460cf108eec1c3eb8",
"shasum": "",
"mirrors": [
{
@@ -1890,7 +1903,7 @@
"require-dev": {
"phpunit/phpunit": "^7|^8|^9.5"
},
- "time": "2021-02-26T10:20:00+00:00",
+ "time": "2021-04-19T13:29:37+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@@ -1916,6 +1929,10 @@
"database",
"orm"
],
+ "support": {
+ "issues": "https://github.com/top-think/think-orm/issues",
+ "source": "https://github.com/top-think/think-orm/tree/v2.0.40"
+ },
"install-path": "../topthink/think-orm"
},
{
diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php
index 276d50fb..970ccbc3 100644
--- a/vendor/composer/installed.php
+++ b/vendor/composer/installed.php
@@ -6,7 +6,7 @@
'aliases' =>
array (
),
- 'reference' => 'a88c8eaf776fef8d0b1fb0a9cc7c2b0af47400a1',
+ 'reference' => 'b0cc71eaedb030831468effc868c449ed24f7aff',
'name' => 'topthink/think',
),
'versions' =>
@@ -166,12 +166,12 @@
),
'psr/log' =>
array (
- 'pretty_version' => '1.1.3',
- 'version' => '1.1.3.0',
+ 'pretty_version' => '1.1.4',
+ 'version' => '1.1.4.0',
'aliases' =>
array (
),
- 'reference' => '0f73288fd15629204f9d42b7055f72dacbe811fc',
+ 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11',
),
'psr/simple-cache' =>
array (
@@ -211,21 +211,21 @@
),
'symfony/var-dumper' =>
array (
- 'pretty_version' => 'v4.4.21',
- 'version' => '4.4.21.0',
+ 'pretty_version' => 'v4.4.22',
+ 'version' => '4.4.22.0',
'aliases' =>
array (
),
- 'reference' => '0da0e174f728996f5d5072d6a9f0a42259dbc806',
+ 'reference' => 'c194bcedde6295f3ec3e9eba1f5d484ea97c41a7',
),
'topthink/framework' =>
array (
- 'pretty_version' => 'v6.0.7',
- 'version' => '6.0.7.0',
+ 'pretty_version' => 'v6.0.8',
+ 'version' => '6.0.8.0',
'aliases' =>
array (
),
- 'reference' => 'db8fe22520a9660dd5e4c87e304034ac49e39270',
+ 'reference' => '4789343672aef06d571d556da369c0e156609bce',
),
'topthink/think' =>
array (
@@ -234,7 +234,7 @@
'aliases' =>
array (
),
- 'reference' => 'a88c8eaf776fef8d0b1fb0a9cc7c2b0af47400a1',
+ 'reference' => 'b0cc71eaedb030831468effc868c449ed24f7aff',
),
'topthink/think-captcha' =>
array (
@@ -274,12 +274,12 @@
),
'topthink/think-orm' =>
array (
- 'pretty_version' => 'v2.0.39',
- 'version' => '2.0.39.0',
+ 'pretty_version' => 'v2.0.40',
+ 'version' => '2.0.40.0',
'aliases' =>
array (
),
- 'reference' => '39a9d0a0e52d9b8bad9d98484d8484cdf5b683a7',
+ 'reference' => '1119d979b850849f3725856460cf108eec1c3eb8',
),
'topthink/think-template' =>
array (
diff --git a/vendor/psr/log/Psr/Log/AbstractLogger.php b/vendor/psr/log/Psr/Log/AbstractLogger.php
index 90e721af..e02f9daf 100755
--- a/vendor/psr/log/Psr/Log/AbstractLogger.php
+++ b/vendor/psr/log/Psr/Log/AbstractLogger.php
@@ -14,8 +14,8 @@ abstract class AbstractLogger implements LoggerInterface
/**
* System is unusable.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -30,8 +30,8 @@ abstract class AbstractLogger implements LoggerInterface
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -45,8 +45,8 @@ abstract class AbstractLogger implements LoggerInterface
*
* Example: Application component unavailable, unexpected exception.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -59,8 +59,8 @@ abstract class AbstractLogger implements LoggerInterface
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -75,8 +75,8 @@ abstract class AbstractLogger implements LoggerInterface
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -88,8 +88,8 @@ abstract class AbstractLogger implements LoggerInterface
/**
* Normal but significant events.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -103,8 +103,8 @@ abstract class AbstractLogger implements LoggerInterface
*
* Example: User logs in, SQL logs.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -116,8 +116,8 @@ abstract class AbstractLogger implements LoggerInterface
/**
* Detailed debug information.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
diff --git a/vendor/psr/log/Psr/Log/LoggerAwareTrait.php b/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
index 639f79bd..82bf45c8 100755
--- a/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
+++ b/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
@@ -10,7 +10,7 @@ trait LoggerAwareTrait
/**
* The logger instance.
*
- * @var LoggerInterface
+ * @var LoggerInterface|null
*/
protected $logger;
diff --git a/vendor/psr/log/composer.json b/vendor/psr/log/composer.json
index 3f6d4eea..ca056953 100755
--- a/vendor/psr/log/composer.json
+++ b/vendor/psr/log/composer.json
@@ -7,7 +7,7 @@
"authors": [
{
"name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
+ "homepage": "https://www.php-fig.org/"
}
],
"require": {
diff --git a/vendor/services.php b/vendor/services.php
index 9d193842..b6e1edc5 100755
--- a/vendor/services.php
+++ b/vendor/services.php
@@ -1,5 +1,5 @@
'think\\captcha\\CaptchaService',
diff --git a/vendor/symfony/var-dumper/Command/ServerDumpCommand.php b/vendor/symfony/var-dumper/Command/ServerDumpCommand.php
index 3ec8353a..b66301b5 100755
--- a/vendor/symfony/var-dumper/Command/ServerDumpCommand.php
+++ b/vendor/symfony/var-dumper/Command/ServerDumpCommand.php
@@ -95,5 +95,7 @@ EOF
$this->server->listen(function (Data $data, array $context, int $clientId) use ($descriptor, $io) {
$descriptor->describe($io, $data, $context, $clientId);
});
+
+ return 0;
}
}
diff --git a/vendor/topthink/framework/src/think/App.php b/vendor/topthink/framework/src/think/App.php
index 69e9b953..cdcfeb8d 100755
--- a/vendor/topthink/framework/src/think/App.php
+++ b/vendor/topthink/framework/src/think/App.php
@@ -39,7 +39,7 @@ use think\initializer\RegisterService;
*/
class App extends Container
{
- const VERSION = '6.0.7';
+ const VERSION = '6.0.8';
/**
* 应用调试模式
@@ -47,6 +47,12 @@ class App extends Container
*/
protected $appDebug = false;
+ /**
+ * 环境变量标识
+ * @var string
+ */
+ protected $envName = '';
+
/**
* 应用开始时间
* @var float
@@ -277,6 +283,18 @@ class App extends Container
return $this->namespace;
}
+ /**
+ * 设置环境变量标识
+ * @access public
+ * @param string $name 环境标识
+ * @return $this
+ */
+ public function setEnvName(string $name)
+ {
+ $this->envName = $name;
+ return $this;
+ }
+
/**
* 获取框架版本
* @access public
@@ -395,6 +413,22 @@ class App extends Container
return $this->beginMem;
}
+ /**
+ * 加载环境变量定义
+ * @access public
+ * @param string $envName 环境标识
+ * @return void
+ */
+ public function loadEnv(string $envName = ''): void
+ {
+ // 加载环境变量
+ $envFile = $envName ? $this->rootPath . '.env.' . $envName : $this->rootPath . '.env';
+
+ if (is_file($envFile)) {
+ $this->env->load($envFile);
+ }
+ }
+
/**
* 初始化应用
* @access public
@@ -407,10 +441,7 @@ class App extends Container
$this->beginTime = microtime(true);
$this->beginMem = memory_get_usage();
- // 加载环境变量
- if (is_file($this->rootPath . '.env')) {
- $this->env->load($this->rootPath . '.env');
- }
+ $this->loadEnv($this->envName);
$this->configExt = $this->env->get('config_ext', '.php');
@@ -590,7 +621,7 @@ class App extends Container
* 是否运行在命令行下
* @return bool
*/
- public function runningInConsole()
+ public function runningInConsole(): bool
{
return php_sapi_name() === 'cli' || php_sapi_name() === 'phpdbg';
}
diff --git a/vendor/topthink/framework/src/think/Request.php b/vendor/topthink/framework/src/think/Request.php
index 2787b99a..a21976df 100755
--- a/vendor/topthink/framework/src/think/Request.php
+++ b/vendor/topthink/framework/src/think/Request.php
@@ -869,6 +869,24 @@ class Request implements ArrayAccess
return $this->input($this->param, $name, $default, $filter);
}
+ /**
+ * 获取包含文件在内的请求参数
+ * @access public
+ * @param string|array $name 变量名
+ * @param string|array $filter 过滤方法
+ * @return mixed
+ */
+ public function all($name = '', $filter = '')
+ {
+ $data = array_merge($this->param(), $this->file());
+
+ if (is_array($name)) {
+ $data = $this->only($name, $data, $filter);
+ }
+
+ return $data;
+ }
+
/**
* 设置路由变量
* @access public
diff --git a/vendor/topthink/framework/src/think/Response.php b/vendor/topthink/framework/src/think/Response.php
index 2c07f534..a8a61ffb 100755
--- a/vendor/topthink/framework/src/think/Response.php
+++ b/vendor/topthink/framework/src/think/Response.php
@@ -214,7 +214,7 @@ abstract class Response
/**
* 是否允许请求缓存
* @access public
- * @return $this
+ * @return bool
*/
public function isAllowCache()
{
diff --git a/vendor/topthink/framework/src/think/Validate.php b/vendor/topthink/framework/src/think/Validate.php
index b7033cc6..07884064 100755
--- a/vendor/topthink/framework/src/think/Validate.php
+++ b/vendor/topthink/framework/src/think/Validate.php
@@ -1591,7 +1591,7 @@ class Validate
* @param string $msg 错误信息
* @param mixed $rule 验证规则数据
* @param string $title 字段描述名
- * @return string
+ * @return string|array
*/
protected function parseErrorMsg(string $msg, $rule, string $title)
{
diff --git a/vendor/topthink/framework/src/think/console/input/Argument.php b/vendor/topthink/framework/src/think/console/input/Argument.php
index 4fa3e3cd..86cca36c 100755
--- a/vendor/topthink/framework/src/think/console/input/Argument.php
+++ b/vendor/topthink/framework/src/think/console/input/Argument.php
@@ -13,14 +13,37 @@ namespace think\console\input;
class Argument
{
-
+ // 必传参数
const REQUIRED = 1;
+
+ // 可选参数
const OPTIONAL = 2;
+
+ // 数组参数
const IS_ARRAY = 4;
+ /**
+ * 参数名
+ * @var string
+ */
private $name;
+
+ /**
+ * 参数类型
+ * @var int
+ */
private $mode;
+
+ /**
+ * 参数默认值
+ * @var mixed
+ */
private $default;
+
+ /**
+ * 参数描述
+ * @var string
+ */
private $description;
/**
diff --git a/vendor/topthink/framework/src/think/event/LogRecord.php b/vendor/topthink/framework/src/think/event/LogRecord.php
new file mode 100644
index 00000000..237468dd
--- /dev/null
+++ b/vendor/topthink/framework/src/think/event/LogRecord.php
@@ -0,0 +1,29 @@
+
+// +----------------------------------------------------------------------
+namespace think\event;
+
+/**
+ * LogRecord事件类
+ */
+class LogRecord
+{
+ /** @var string */
+ public $type;
+
+ /** @var string */
+ public $message;
+
+ public function __construct($type, $message)
+ {
+ $this->type = $type;
+ $this->message = $message;
+ }
+}
diff --git a/vendor/topthink/framework/src/think/log/Channel.php b/vendor/topthink/framework/src/think/log/Channel.php
index 505d8387..1de96f1a 100755
--- a/vendor/topthink/framework/src/think/log/Channel.php
+++ b/vendor/topthink/framework/src/think/log/Channel.php
@@ -15,6 +15,7 @@ namespace think\log;
use Psr\Log\LoggerInterface;
use think\contract\LogHandlerInterface;
use think\Event;
+use think\event\LogRecord;
use think\event\LogWrite;
class Channel implements LoggerInterface
@@ -94,6 +95,9 @@ class Channel implements LoggerInterface
if (!empty($msg) || 0 === $msg) {
$this->log[$type][] = $msg;
+ if ($this->event) {
+ $this->event->trigger(new LogRecord($type, $msg));
+ }
}
if (!$this->lazy || !$lazy) {
diff --git a/vendor/topthink/framework/src/think/route/RuleGroup.php b/vendor/topthink/framework/src/think/route/RuleGroup.php
index 7b9deea4..cd9ddbd1 100755
--- a/vendor/topthink/framework/src/think/route/RuleGroup.php
+++ b/vendor/topthink/framework/src/think/route/RuleGroup.php
@@ -171,7 +171,9 @@ class RuleGroup extends Rule
}
}
- if ($this->miss && in_array($this->miss->getMethod(), ['*', $method])) {
+ if (!empty($option['dispatcher'])) {
+ $result = $this->parseRule($request, '', $option['dispatcher'], $url, $option);
+ } elseif ($this->miss && in_array($this->miss->getMethod(), ['*', $method])) {
// 未匹配所有路由的路由规则处理
$result = $this->parseRule($request, '', $this->miss->getRoute(), $url, $this->miss->getOption());
} else {
@@ -244,6 +246,11 @@ class RuleGroup extends Rule
*/
public function parseGroupRule($rule): void
{
+ if (is_string($rule) && is_subclass_of($rule, Dispatch::class)) {
+ $this->dispatcher($rule);
+ return;
+ }
+
$origin = $this->router->getGroup();
$this->router->setGroup($this);
@@ -466,6 +473,17 @@ class RuleGroup extends Rule
return $this->setOption('merge_rule_regex', $merge);
}
+ /**
+ * 设置分组的Dispatch调度
+ * @access public
+ * @param string $dispatch 调度类
+ * @return $this
+ */
+ public function dispatcher(string $dispatch)
+ {
+ return $this->setOption('dispatcher', $dispatch);
+ }
+
/**
* 获取完整分组Name
* @access public
diff --git a/vendor/topthink/framework/src/think/session/driver/File.php b/vendor/topthink/framework/src/think/session/driver/File.php
index 1a0734ed..788f3230 100755
--- a/vendor/topthink/framework/src/think/session/driver/File.php
+++ b/vendor/topthink/framework/src/think/session/driver/File.php
@@ -98,7 +98,7 @@ class File implements SessionHandlerInterface
/** @var SplFileInfo $item */
foreach ($items as $item) {
if ($item->isDir() && !$item->isLink()) {
- yield from$this->findFiles($item->getPathname(), $filter);
+ yield from $this->findFiles($item->getPathname(), $filter);
} else {
if ($filter($item)) {
yield $item;
diff --git a/vendor/topthink/think-orm/src/Model.php b/vendor/topthink/think-orm/src/Model.php
index 0cb74e98..041ec811 100755
--- a/vendor/topthink/think-orm/src/Model.php
+++ b/vendor/topthink/think-orm/src/Model.php
@@ -267,7 +267,6 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab
public function newInstance(array $data = [], $where = null): Model
{
$model = new static($data);
- $model->readDataType();
if ($this->connection) {
$model->setConnection($this->connection);
@@ -457,8 +456,6 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab
$this->data = $this->db()->find($this->getKey())->getData();
$this->origin = $this->data;
$this->get = [];
- $this->set = [];
- $this->readDataType();
if ($relation) {
$this->relation = [];
@@ -546,7 +543,7 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab
// 重新记录原始数据
$this->origin = $this->data;
- $this->set = [];
+ $this->get = [];
$this->lazySave = false;
return true;
@@ -613,8 +610,6 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab
return true;
}
- $data = $this->writeDataType($data);
-
if ($this->autoWriteTimestamp && $this->updateTime) {
// 自动写入更新时间
$data[$this->updateTime] = $this->autoWriteTimestamp();
@@ -677,7 +672,7 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab
}
$this->checkData();
- $data = $this->writeDataType($this->data);
+ $data = $this->data;
// 时间戳自动写入
if ($this->autoWriteTimestamp) {
@@ -709,6 +704,7 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab
$pk = $this->getPk();
if (is_string($pk) && (!isset($this->data[$pk]) || '' == $this->data[$pk])) {
+ unset($this->get[$pk]);
$this->data[$pk] = $result;
}
}
@@ -721,6 +717,7 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab
// 标记数据已经存在
$this->exists = true;
+ $this->origin = $this->data;
// 新增回调
$this->trigger('AfterInsert');
@@ -969,7 +966,6 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab
{
unset($this->data[$name],
$this->get[$name],
- $this->set[$name],
$this->relation[$name]);
}
diff --git a/vendor/topthink/think-orm/src/db/BaseQuery.php b/vendor/topthink/think-orm/src/db/BaseQuery.php
index 741ef335..ef2d3fd4 100755
--- a/vendor/topthink/think-orm/src/db/BaseQuery.php
+++ b/vendor/topthink/think-orm/src/db/BaseQuery.php
@@ -1163,10 +1163,6 @@ abstract class BaseQuery
$this->parseView($options);
}
- if (!isset($options['field'])) {
- $options['field'] = '*';
- }
-
foreach (['data', 'order', 'join', 'union'] as $name) {
if (!isset($options[$name])) {
$options[$name] = [];
diff --git a/vendor/topthink/think-orm/src/db/Builder.php b/vendor/topthink/think-orm/src/db/Builder.php
index 914dd705..73244f4d 100755
--- a/vendor/topthink/think-orm/src/db/Builder.php
+++ b/vendor/topthink/think-orm/src/db/Builder.php
@@ -136,7 +136,7 @@ abstract class Builder
}
if (empty($fields)) {
- if ('*' == $options['field']) {
+ if (empty($options['field']) || '*' == $options['field']) {
$fields = array_keys($bind);
} else {
$fields = $options['field'];
@@ -1125,7 +1125,7 @@ abstract class Builder
$this->parseTable($query, $options['table']),
$this->parseDistinct($query, $options['distinct']),
$this->parseExtra($query, $options['extra']),
- $this->parseField($query, $options['field']),
+ $this->parseField($query, $options['field'] ?? '*'),
$this->parseJoin($query, $options['join']),
$this->parseWhere($query, $options['where']),
$this->parseGroup($query, $options['group']),
@@ -1187,7 +1187,7 @@ abstract class Builder
$bind = $query->getFieldsBindType();
// 获取合法的字段
- if ('*' == $options['field']) {
+ if (empty($options['field']) || '*' == $options['field']) {
$allowFields = array_keys($bind);
} else {
$allowFields = $options['field'];
diff --git a/vendor/topthink/think-orm/src/db/Connection.php b/vendor/topthink/think-orm/src/db/Connection.php
index 4400ece5..aa86ba8e 100755
--- a/vendor/topthink/think-orm/src/db/Connection.php
+++ b/vendor/topthink/think-orm/src/db/Connection.php
@@ -290,7 +290,7 @@ abstract class Connection implements ConnectionInterface
protected function getCacheKey(BaseQuery $query, string $method = ''): string
{
if (!empty($query->getOptions('key')) && empty($method)) {
- $key = 'think:' . $this->getConfig('database') . '.' . $query->getTable() . '|' . $query->getOptions('key');
+ $key = 'think_' . $this->getConfig('database') . '.' . $query->getTable() . '|' . $query->getOptions('key');
} else {
$key = $query->getQueryGuid();
}
diff --git a/vendor/topthink/think-orm/src/db/builder/Mysql.php b/vendor/topthink/think-orm/src/db/builder/Mysql.php
index 10c8d1db..136b0dee 100755
--- a/vendor/topthink/think-orm/src/db/builder/Mysql.php
+++ b/vendor/topthink/think-orm/src/db/builder/Mysql.php
@@ -89,7 +89,7 @@ class Mysql extends Builder
$this->parsePartition($query, $options['partition']),
$this->parseDistinct($query, $options['distinct']),
$this->parseExtra($query, $options['extra']),
- $this->parseField($query, $options['field']),
+ $this->parseField($query, $options['field'] ?? '*'),
$this->parseJoin($query, $options['join']),
$this->parseWhere($query, $options['where']),
$this->parseGroup($query, $options['group']),
@@ -155,7 +155,7 @@ class Mysql extends Builder
$bind = $query->getFieldsBindType();
// 获取合法的字段
- if ('*' == $options['field']) {
+ if (empty($options['field']) || '*' == $options['field']) {
$allowFields = array_keys($bind);
} else {
$allowFields = $options['field'];
diff --git a/vendor/topthink/think-orm/src/model/concern/Attribute.php b/vendor/topthink/think-orm/src/model/concern/Attribute.php
index 737e29d3..8f6f918d 100755
--- a/vendor/topthink/think-orm/src/model/concern/Attribute.php
+++ b/vendor/topthink/think-orm/src/model/concern/Attribute.php
@@ -100,12 +100,6 @@ trait Attribute
*/
private $get = [];
- /**
- * 修改器执行记录
- * @var array
- */
- private $set = [];
-
/**
* 动态获取器
* @var array
@@ -363,10 +357,6 @@ trait Attribute
{
$name = $this->getRealFieldName($name);
- if (isset($this->set[$name])) {
- return;
- }
-
// 检测修改器
$method = 'set' . Str::studly($name) . 'Attr';
@@ -375,10 +365,12 @@ trait Attribute
$value = $this->$method($value, array_merge($this->data, $data));
- $this->set[$name] = true;
if (is_null($value) && $array !== $this->data) {
return;
}
+ } elseif (isset($this->type[$name])) {
+ // 类型转换
+ $value = $this->writeTransform($value, $this->type[$name]);
}
// 设置数据对象属性
@@ -512,6 +504,11 @@ trait Attribute
}
$value = $this->$method($value, $this->data);
+ } elseif (isset($this->type[$fieldName])) {
+ // 类型转换
+ $value = $this->readTransform($value, $this->type[$fieldName]);
+ } elseif ($this->autoWriteTimestamp && in_array($fieldName, [$this->createTime, $this->updateTime])) {
+ $value = $this->getTimestampValue($value);
} elseif ($relation) {
$value = $this->getRelationValue($relation);
// 保存关联对象值
@@ -523,40 +520,6 @@ trait Attribute
return $value;
}
- /**
- * 读取数据类型处理
- * @access protected
- * @return void
- */
- protected function readDataType(): void
- {
- foreach ($this->data as $key => $value) {
- if (isset($this->type[$key])) {
- $this->get[$key] = $this->readTransform($value, $this->type[$key]);
- } elseif ($this->autoWriteTimestamp && in_array($key, [$this->createTime, $this->updateTime])) {
- $this->get[$key] = $this->getTimestampValue($value);
- }
- }
- }
-
- /**
- * 写入数据类型处理
- * @access protected
- * @param array $data 数据
- * @return array
- */
- protected function writeDataType(array $data): array
- {
- foreach ($data as $name => &$value) {
- if (isset($this->type[$name])) {
- // 类型转换
- $value = $this->writeTransform($value, $this->type[$name]);
- }
- }
-
- return $data;
- }
-
/**
* 获取JSON字段属性值
* @access protected
diff --git a/vendor/topthink/think-orm/src/model/concern/RelationShip.php b/vendor/topthink/think-orm/src/model/concern/RelationShip.php
index f3da1c40..33c1b890 100755
--- a/vendor/topthink/think-orm/src/model/concern/RelationShip.php
+++ b/vendor/topthink/think-orm/src/model/concern/RelationShip.php
@@ -136,7 +136,7 @@ trait RelationShip
public function relationQuery(array $relations, array $withRelationAttr = []): void
{
foreach ($relations as $key => $relation) {
- $subRelation = '';
+ $subRelation = [];
$closure = null;
if ($relation instanceof Closure) {
@@ -161,7 +161,7 @@ trait RelationShip
$relationResult->withAttr($withRelationAttr[$relationName]);
}
- $this->relation[$relation] = $relationResult->getRelation($subRelation, $closure);
+ $this->relation[$relation] = $relationResult->getRelation((array) $subRelation, $closure);
}
}
@@ -810,19 +810,20 @@ trait RelationShip
/**
* 自动关联数据删除(支持一对一及一对多关联)
* @access protected
+ * @param bool $force 强制删除
* @return void
*/
- protected function autoRelationDelete(): void
+ protected function autoRelationDelete($force = false): void
{
foreach ($this->relationWrite as $key => $name) {
$name = is_numeric($key) ? $name : $key;
$result = $this->getRelation($name, true);
if ($result instanceof Model) {
- $result->delete();
+ $result->force($force)->delete();
} elseif ($result instanceof Collection) {
foreach ($result as $model) {
- $model->delete();
+ $model->force($force)->delete();
}
}
}
diff --git a/vendor/topthink/think-orm/src/model/concern/SoftDelete.php b/vendor/topthink/think-orm/src/model/concern/SoftDelete.php
index ce5d392e..5a9a56dc 100755
--- a/vendor/topthink/think-orm/src/model/concern/SoftDelete.php
+++ b/vendor/topthink/think-orm/src/model/concern/SoftDelete.php
@@ -107,9 +107,10 @@ trait SoftDelete
return false;
}
- $name = $this->getDeleteTimeField();
+ $name = $this->getDeleteTimeField();
+ $force = $this->isForce();
- if ($name && !$this->isForce()) {
+ if ($name && !$force) {
// 软删除
$this->set($name, $this->autoWriteTimestamp($name));
@@ -131,7 +132,7 @@ trait SoftDelete
// 关联删除
if (!empty($this->relationWrite)) {
- $this->autoRelationDelete();
+ $this->autoRelationDelete($force);
}
$this->trigger('AfterDelete');
diff --git a/vendor/topthink/think-orm/src/model/relation/MorphOne.php b/vendor/topthink/think-orm/src/model/relation/MorphOne.php
index 6789c761..bc89c0ba 100755
--- a/vendor/topthink/think-orm/src/model/relation/MorphOne.php
+++ b/vendor/topthink/think-orm/src/model/relation/MorphOne.php
@@ -41,6 +41,12 @@ class MorphOne extends Relation
*/
protected $type;
+ /**
+ * 绑定的关联属性
+ * @var array
+ */
+ protected $bindAttr = [];
+
/**
* 构造函数
* @access public
@@ -78,6 +84,11 @@ class MorphOne extends Relation
$relationModel = $this->query->relation($subRelation)->find();
if ($relationModel) {
+ if (!empty($this->bindAttr)) {
+ // 绑定关联属性
+ $this->bindAttr($this->parent, $relationModel);
+ }
+
$relationModel->setParent(clone $this->parent);
}
@@ -154,7 +165,13 @@ class MorphOne extends Relation
$relationModel->exists(true);
}
- $result->setRelation($relation, $relationModel);
+ if (!empty($this->bindAttr)) {
+ // 绑定关联属性
+ $this->bindAttr($result, $relationModel);
+ } else {
+ // 设置关联属性
+ $result->setRelation($relation, $relationModel);
+ }
}
}
}
@@ -188,7 +205,13 @@ class MorphOne extends Relation
$relationModel = null;
}
- $result->setRelation($relation, $relationModel);
+ if (!empty($this->bindAttr)) {
+ // 绑定关联属性
+ $this->bindAttr($result, $relationModel);
+ } else {
+ // 设置关联属性
+ $result->setRelation($relation, $relationModel);
+ }
}
}
@@ -277,4 +300,48 @@ class MorphOne extends Relation
}
}
+ /**
+ * 绑定关联表的属性到父模型属性
+ * @access public
+ * @param array $attr 要绑定的属性列表
+ * @return $this
+ */
+ public function bind(array $attr)
+ {
+ $this->bindAttr = $attr;
+
+ return $this;
+ }
+
+ /**
+ * 获取绑定属性
+ * @access public
+ * @return array
+ */
+ public function getBindAttr(): array
+ {
+ return $this->bindAttr;
+ }
+
+ /**
+ * 绑定关联属性到父模型
+ * @access protected
+ * @param Model $result 父模型对象
+ * @param Model $model 关联模型对象
+ * @return void
+ * @throws Exception
+ */
+ protected function bindAttr(Model $result, Model $model = null): void
+ {
+ foreach ($this->bindAttr as $key => $attr) {
+ $key = is_numeric($key) ? $attr : $key;
+ $value = $result->getOrigin($key);
+
+ if (!is_null($value)) {
+ throw new Exception('bind attr has exists:' . $key);
+ }
+
+ $result->setAttr($key, $model ? $model->$attr : null);
+ }
+ }
}