From 3fa6c8f82fc579fcd3dfe500d8ca18de866e309d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E5=AE=9D=E4=B9=A6=E8=AE=B0?= Date: Fri, 23 Apr 2021 19:50:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8F=92=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=8B=E8=BD=BD=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chengji/controller/Bjtongji.php | 5 +- app/chengji/controller/Index.php | 2 + app/chengji/controller/Njtongji.php | 1 + app/keti/controller/KetiInfo.php | 1 + app/luru/controller/Index.php | 3 +- app/rongyu/controller/JsRongyuInfo.php | 1 + composer.json | 4 +- composer.lock | 26 +-- vendor/bin/var-dump-server | 32 ++- vendor/composer/InstalledVersions.php | 16 +- vendor/composer/autoload_files.php | 2 +- vendor/composer/autoload_static.php | 2 +- vendor/composer/installed.json | 188 +++++++++--------- vendor/composer/installed.php | 16 +- vendor/overtrue/pinyin/data/words_4 | 4 +- vendor/overtrue/pinyin/src/FileDictLoader.php | 3 - .../pinyin/src/GeneratorFileDictLoader.php | 3 - .../pinyin/src/MemoryFileDictLoader.php | 7 +- vendor/overtrue/pinyin/src/Pinyin.php | 51 ++--- vendor/services.php | 2 +- .../symfony/var-dumper/Caster/DateCaster.php | 2 +- .../var-dumper/Caster/ReflectionCaster.php | 21 +- .../var-dumper/Command/ServerDumpCommand.php | 2 +- 23 files changed, 203 insertions(+), 191 deletions(-) diff --git a/app/chengji/controller/Bjtongji.php b/app/chengji/controller/Bjtongji.php index 3567e42c..9da066ab 100755 --- a/app/chengji/controller/Bjtongji.php +++ b/app/chengji/controller/Bjtongji.php @@ -263,12 +263,13 @@ class Bjtongji extends AdminBase // 保存文件 - $filename = $tabletitle.date('ymdHis').'.xlsx'; + $filename = $tabletitle . date('ymdHis', time()) . '.xlsx'; header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="' . $filename . '"'); header('Cache-Control: max-age=0'); $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xlsx'); - $writer->save('php://output'); + ini_set("error_reporting","E_ALL & ~E_NOTICE"); + $writer->save('php://output');halt($filename); ob_flush(); flush(); exit(); diff --git a/app/chengji/controller/Index.php b/app/chengji/controller/Index.php index 57285cdb..f0389ce5 100755 --- a/app/chengji/controller/Index.php +++ b/app/chengji/controller/Index.php @@ -442,6 +442,7 @@ class Index extends AdminBase header('Content-Disposition: attachment;filename="' . $filename . '"'); header('Cache-Control: max-age=0'); $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xlsx'); + ini_set("error_reporting","E_ALL & ~E_NOTICE"); $writer->save('php://output'); ob_flush(); flush(); @@ -648,6 +649,7 @@ class Index extends AdminBase header('Content-Disposition: attachment;filename="' . $filename . '"'); header('Cache-Control: max-age=0'); $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xlsx'); + ini_set("error_reporting","E_ALL & ~E_NOTICE"); $writer->save('php://output'); ob_flush(); flush(); diff --git a/app/chengji/controller/Njtongji.php b/app/chengji/controller/Njtongji.php index fb8bb45a..70d2200b 100755 --- a/app/chengji/controller/Njtongji.php +++ b/app/chengji/controller/Njtongji.php @@ -247,6 +247,7 @@ class Njtongji extends AdminBase header('Content-Disposition: attachment;filename="' . $filename . '"'); header('Cache-Control: max-age=0'); $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xlsx'); + ini_set("error_reporting","E_ALL & ~E_NOTICE"); $writer->save('php://output'); ob_flush(); flush(); diff --git a/app/keti/controller/KetiInfo.php b/app/keti/controller/KetiInfo.php index cb3c1f92..102e245b 100755 --- a/app/keti/controller/KetiInfo.php +++ b/app/keti/controller/KetiInfo.php @@ -560,6 +560,7 @@ class KetiInfo extends AdminBase //禁止缓存 header('Cache-Control: max-age=0'); $writer = new Xlsx($spreadsheet); + ini_set("error_reporting","E_ALL & ~E_NOTICE"); $writer->save('php://output'); ob_flush(); flush(); diff --git a/app/luru/controller/Index.php b/app/luru/controller/Index.php index b9827cd7..90499b42 100755 --- a/app/luru/controller/Index.php +++ b/app/luru/controller/Index.php @@ -533,6 +533,7 @@ class Index extends AdminBase header('Content-Disposition: attachment;filename="' . $filename . '"'); header('Cache-Control: max-age=0'); $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xlsx'); + ini_set("error_reporting","E_ALL & ~E_NOTICE"); $writer->save('php://output'); ob_flush(); flush(); @@ -656,8 +657,8 @@ class Index extends AdminBase header('Content-Disposition: attachment;filename="' . $filename . '"'); header('Cache-Control: max-age=0'); $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xls'); + ini_set("error_reporting","E_ALL & ~E_NOTICE"); $writer->save('php://output'); - ob_flush(); flush(); exit(); diff --git a/app/rongyu/controller/JsRongyuInfo.php b/app/rongyu/controller/JsRongyuInfo.php index de056d44..fac2b55a 100755 --- a/app/rongyu/controller/JsRongyuInfo.php +++ b/app/rongyu/controller/JsRongyuInfo.php @@ -514,6 +514,7 @@ class JsRongyuInfo extends AdminBase //禁止缓存 header('Cache-Control: max-age=0'); $writer = new Xlsx($spreadsheet); + ini_set("error_reporting","E_ALL & ~E_NOTICE"); $writer->save('php://output'); ob_flush(); flush(); diff --git a/composer.json b/composer.json index e74f1dde..ea911d47 100755 --- a/composer.json +++ b/composer.json @@ -26,10 +26,10 @@ "whitehat101/apr1-md5": "^1.0", "liliuwei/thinkphp-jump": "^1.3", "topthink/think-migration": "^3.0", - "phpoffice/phpspreadsheet": "^1.10", "overtrue/pinyin": "^4.0", "wamkj/thinkphp6.0-databackup": "^1.0", - "liliuwei/thinkphp-auth": "2.0.*" + "liliuwei/thinkphp-auth": "2.0.*", + "phpoffice/phpspreadsheet": "^1.17" }, "require-dev": { "symfony/var-dumper": "^4.2", diff --git a/composer.lock b/composer.lock index eb9c8b44..b926a850 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": "555b51e6e7f1ea6ae736f7a0b9b0de14", + "content-hash": "51867953ce60a0584b70e2e67d9d5250", "packages": [ { "name": "ezyang/htmlpurifier", @@ -677,16 +677,16 @@ }, { "name": "overtrue/pinyin", - "version": "4.0.6", + "version": "4.0.7", "source": { "type": "git", "url": "https://github.com/overtrue/pinyin.git", - "reference": "9836dae1783bcf5934508a2abe32eca9ea5ee15d" + "reference": "083de406907d42df2e0feaaeb83f1a3c2e0095eb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/overtrue/pinyin/zipball/9836dae1783bcf5934508a2abe32eca9ea5ee15d", - "reference": "9836dae1783bcf5934508a2abe32eca9ea5ee15d", + "url": "https://api.github.com/repos/overtrue/pinyin/zipball/083de406907d42df2e0feaaeb83f1a3c2e0095eb", + "reference": "083de406907d42df2e0feaaeb83f1a3c2e0095eb", "shasum": "" }, "require": { @@ -738,7 +738,7 @@ ], "support": { "issues": "https://github.com/overtrue/pinyin/issues", - "source": "https://github.com/overtrue/pinyin/tree/master" + "source": "https://github.com/overtrue/pinyin/tree/4.0.7" }, "funding": [ { @@ -746,7 +746,7 @@ "type": "patreon" } ], - "time": "2020-04-13T08:53:30+00:00" + "time": "2021-04-16T11:13:48+00:00" }, { "name": "phpoffice/phpspreadsheet", @@ -1943,16 +1943,16 @@ }, { "name": "symfony/var-dumper", - "version": "v4.4.20", + "version": "v4.4.21", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "a1eab2f69906dc83c5ddba4632180260d0ab4f7f" + "reference": "0da0e174f728996f5d5072d6a9f0a42259dbc806" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/a1eab2f69906dc83c5ddba4632180260d0ab4f7f", - "reference": "a1eab2f69906dc83c5ddba4632180260d0ab4f7f", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/0da0e174f728996f5d5072d6a9f0a42259dbc806", + "reference": "0da0e174f728996f5d5072d6a9f0a42259dbc806", "shasum": "" }, "require": { @@ -2012,7 +2012,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v4.4.20" + "source": "https://github.com/symfony/var-dumper/tree/v4.4.21" }, "funding": [ { @@ -2028,7 +2028,7 @@ "type": "tidelift" } ], - "time": "2021-01-27T09:09:26+00:00" + "time": "2021-03-27T19:49:03+00:00" }, { "name": "topthink/think-trace", diff --git a/vendor/bin/var-dump-server b/vendor/bin/var-dump-server index 947161e3..4b749cce 100755 --- a/vendor/bin/var-dump-server +++ b/vendor/bin/var-dump-server @@ -1,14 +1,24 @@ -#!/usr/bin/env sh +#!/usr/bin/env php + /dev/null; cd "../symfony/var-dumper/Resources/bin" && pwd) +/** + * Proxy PHP file generated by Composer + * + * This file includes the referenced bin path (../symfony/var-dumper/Resources/bin/var-dump-server) using eval to remove the shebang if present + * + * @generated + */ -if [ -d /proc/cygdrive ]; then - case $(which php) in - $(readlink -n /proc/cygdrive)/*) - # We are in Cygwin using Windows php, so the path must be translated - dir=$(cygpath -m "$dir"); - ;; - esac -fi +$binPath = realpath(__DIR__ . "/" . '../symfony/var-dumper/Resources/bin/var-dump-server'); +$contents = file_get_contents($binPath); +$contents = preg_replace('{^#!/.+\r?\n<\?(php)?}', '', $contents, 1, $replaced); +if ($replaced) { + $contents = strtr($contents, array( + '__FILE__' => var_export($binPath, true), + '__DIR__' => var_export(dirname($binPath), true), + )); -"${dir}/var-dump-server" "$@" + eval($contents); + exit(0); +} +include $binPath; diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php index a748adb2..df25b5cc 100644 --- a/vendor/composer/InstalledVersions.php +++ b/vendor/composer/InstalledVersions.php @@ -30,7 +30,7 @@ private static $installed = array ( 'aliases' => array ( ), - 'reference' => '4faf07fa370d59845ed3e02424bc37c18364a1aa', + 'reference' => 'a88c8eaf776fef8d0b1fb0a9cc7c2b0af47400a1', 'name' => 'topthink/think', ), 'versions' => @@ -127,12 +127,12 @@ private static $installed = array ( ), 'overtrue/pinyin' => array ( - 'pretty_version' => '4.0.6', - 'version' => '4.0.6.0', + 'pretty_version' => '4.0.7', + 'version' => '4.0.7.0', 'aliases' => array ( ), - 'reference' => '9836dae1783bcf5934508a2abe32eca9ea5ee15d', + 'reference' => '083de406907d42df2e0feaaeb83f1a3c2e0095eb', ), 'phpoffice/phpspreadsheet' => array ( @@ -235,12 +235,12 @@ private static $installed = array ( ), 'symfony/var-dumper' => array ( - 'pretty_version' => 'v4.4.20', - 'version' => '4.4.20.0', + 'pretty_version' => 'v4.4.21', + 'version' => '4.4.21.0', 'aliases' => array ( ), - 'reference' => 'a1eab2f69906dc83c5ddba4632180260d0ab4f7f', + 'reference' => '0da0e174f728996f5d5072d6a9f0a42259dbc806', ), 'topthink/framework' => array ( @@ -258,7 +258,7 @@ private static $installed = array ( 'aliases' => array ( ), - 'reference' => '4faf07fa370d59845ed3e02424bc37c18364a1aa', + 'reference' => 'a88c8eaf776fef8d0b1fb0a9cc7c2b0af47400a1', ), 'topthink/think-captcha' => array ( diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php index a552d4fe..d3b298a2 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', '667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php', - '1cfd2761b63b0a29ed23657ea394cb2d' => $vendorDir . '/topthink/think-captcha/src/helper.php', ); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 24a0a77e..889793d8 100755 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -71,9 +71,9 @@ 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', '667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php', - '1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php', ); public static $prefixLengthsPsr4 = array ( diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 8be45994..8fcd0097 100755 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -13,13 +13,7 @@ "type": "zip", "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75", "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "shasum": "" }, "require": { "php": ">=5.2" @@ -57,6 +51,10 @@ "keywords": [ "html" ], + "support": { + "issues": "https://github.com/ezyang/htmlpurifier/issues", + "source": "https://github.com/ezyang/htmlpurifier/tree/master" + }, "install-path": "../ezyang/htmlpurifier" }, { @@ -392,13 +390,7 @@ "type": "zip", "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/c4c5803cc1f93df3d2448478ef79394a5981cc58", "reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "shasum": "" }, "require": { "myclabs/php-enum": "^1.5", @@ -447,6 +439,16 @@ "stream", "zip" ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/master" + }, + "funding": [ + { + "url": "https://opencollective.com/zipstream", + "type": "open_collective" + } + ], "install-path": "../maennchen/zipstream-php" }, { @@ -462,13 +464,7 @@ "type": "zip", "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/9999f1432fae467bc93c53f357105b4c31bb994c", "reference": "9999f1432fae467bc93c53f357105b4c31bb994c", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "shasum": "" }, "require": { "php": "^7.2 || ^8.0" @@ -551,6 +547,10 @@ "complex", "mathematics" ], + "support": { + "issues": "https://github.com/MarkBaker/PHPComplex/issues", + "source": "https://github.com/MarkBaker/PHPComplex/tree/PHP8" + }, "install-path": "../markbaker/complex" }, { @@ -566,13 +566,7 @@ "type": "zip", "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/361c0f545c3172ee26c3d596a0aa03f0cef65e6a", "reference": "361c0f545c3172ee26c3d596a0aa03f0cef65e6a", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "shasum": "" }, "require": { "php": "^7.1 || ^8.0" @@ -630,6 +624,10 @@ "matrix", "vector" ], + "support": { + "issues": "https://github.com/MarkBaker/PHPMatrix/issues", + "source": "https://github.com/MarkBaker/PHPMatrix/tree/2.1.2" + }, "install-path": "../markbaker/matrix" }, { @@ -645,13 +643,7 @@ "type": "zip", "url": "https://api.github.com/repos/myclabs/php-enum/zipball/46cf3d8498b095bd33727b13fd5707263af99421", "reference": "46cf3d8498b095bd33727b13fd5707263af99421", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "shasum": "" }, "require": { "ext-json": "*", @@ -685,28 +677,36 @@ "keywords": [ "enum" ], + "support": { + "issues": "https://github.com/myclabs/php-enum/issues", + "source": "https://github.com/myclabs/php-enum/tree/1.8.0" + }, + "funding": [ + { + "url": "https://github.com/mnapoli", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum", + "type": "tidelift" + } + ], "install-path": "../myclabs/php-enum" }, { "name": "overtrue/pinyin", - "version": "4.0.6", - "version_normalized": "4.0.6.0", + "version": "4.0.7", + "version_normalized": "4.0.7.0", "source": { "type": "git", "url": "https://github.com/overtrue/pinyin.git", - "reference": "9836dae1783bcf5934508a2abe32eca9ea5ee15d" + "reference": "083de406907d42df2e0feaaeb83f1a3c2e0095eb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/overtrue/pinyin/zipball/9836dae1783bcf5934508a2abe32eca9ea5ee15d", - "reference": "9836dae1783bcf5934508a2abe32eca9ea5ee15d", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "url": "https://api.github.com/repos/overtrue/pinyin/zipball/083de406907d42df2e0feaaeb83f1a3c2e0095eb", + "reference": "083de406907d42df2e0feaaeb83f1a3c2e0095eb", + "shasum": "" }, "require": { "php": ">=7.1" @@ -716,7 +716,7 @@ "friendsofphp/php-cs-fixer": "^2.16", "phpunit/phpunit": "~8.0" }, - "time": "2020-04-13T08:53:30+00:00", + "time": "2021-04-16T11:13:48+00:00", "type": "library", "extra": { "hooks": { @@ -757,6 +757,16 @@ "Pinyin", "cn2pinyin" ], + "support": { + "issues": "https://github.com/overtrue/pinyin/issues", + "source": "https://github.com/overtrue/pinyin/tree/4.0.7" + }, + "funding": [ + { + "url": "https://www.patreon.com/overtrue", + "type": "patreon" + } + ], "install-path": "../overtrue/pinyin" }, { @@ -772,13 +782,7 @@ "type": "zip", "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/c55269cb06911575a126dc225a05c0e4626e5fb4", "reference": "c55269cb06911575a126dc225a05c0e4626e5fb4", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "shasum": "" }, "require": { "ext-ctype": "*", @@ -863,6 +867,10 @@ "xls", "xlsx" ], + "support": { + "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues", + "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.17.1" + }, "install-path": "../phpoffice/phpspreadsheet" }, { @@ -986,13 +994,7 @@ "type": "zip", "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "shasum": "" }, "require": { "php": "^7.0 || ^8.0", @@ -1029,6 +1031,9 @@ "psr", "psr-18" ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, "install-path": "../psr/http-client" }, { @@ -1044,13 +1049,7 @@ "type": "zip", "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "shasum": "" }, "require": { "php": ">=7.0.0", @@ -1090,6 +1089,9 @@ "request", "response" ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/master" + }, "install-path": "../psr/http-factory" }, { @@ -1105,13 +1107,7 @@ "type": "zip", "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "shasum": "" }, "require": { "php": ">=5.3.0" @@ -1149,6 +1145,9 @@ "request", "response" ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, "install-path": "../psr/http-message" }, { @@ -1481,24 +1480,18 @@ }, { "name": "symfony/var-dumper", - "version": "v4.4.20", - "version_normalized": "4.4.20.0", + "version": "v4.4.21", + "version_normalized": "4.4.21.0", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "a1eab2f69906dc83c5ddba4632180260d0ab4f7f" + "reference": "0da0e174f728996f5d5072d6a9f0a42259dbc806" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/a1eab2f69906dc83c5ddba4632180260d0ab4f7f", - "reference": "a1eab2f69906dc83c5ddba4632180260d0ab4f7f", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/0da0e174f728996f5d5072d6a9f0a42259dbc806", + "reference": "0da0e174f728996f5d5072d6a9f0a42259dbc806", + "shasum": "" }, "require": { "php": ">=7.1.3", @@ -1521,7 +1514,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-01-27T09:09:26+00:00", + "time": "2021-03-27T19:49:03+00:00", "bin": [ "Resources/bin/var-dump-server" ], @@ -1558,6 +1551,23 @@ "debug", "dump" ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v4.4.21" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "install-path": "../symfony/var-dumper" }, { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index c8557309..276d50fb 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -6,7 +6,7 @@ 'aliases' => array ( ), - 'reference' => '4faf07fa370d59845ed3e02424bc37c18364a1aa', + 'reference' => 'a88c8eaf776fef8d0b1fb0a9cc7c2b0af47400a1', 'name' => 'topthink/think', ), 'versions' => @@ -103,12 +103,12 @@ ), 'overtrue/pinyin' => array ( - 'pretty_version' => '4.0.6', - 'version' => '4.0.6.0', + 'pretty_version' => '4.0.7', + 'version' => '4.0.7.0', 'aliases' => array ( ), - 'reference' => '9836dae1783bcf5934508a2abe32eca9ea5ee15d', + 'reference' => '083de406907d42df2e0feaaeb83f1a3c2e0095eb', ), 'phpoffice/phpspreadsheet' => array ( @@ -211,12 +211,12 @@ ), 'symfony/var-dumper' => array ( - 'pretty_version' => 'v4.4.20', - 'version' => '4.4.20.0', + 'pretty_version' => 'v4.4.21', + 'version' => '4.4.21.0', 'aliases' => array ( ), - 'reference' => 'a1eab2f69906dc83c5ddba4632180260d0ab4f7f', + 'reference' => '0da0e174f728996f5d5072d6a9f0a42259dbc806', ), 'topthink/framework' => array ( @@ -234,7 +234,7 @@ 'aliases' => array ( ), - 'reference' => '4faf07fa370d59845ed3e02424bc37c18364a1aa', + 'reference' => 'a88c8eaf776fef8d0b1fb0a9cc7c2b0af47400a1', ), 'topthink/think-captcha' => array ( diff --git a/vendor/overtrue/pinyin/data/words_4 b/vendor/overtrue/pinyin/data/words_4 index 4a5c9151..8479b567 100755 --- a/vendor/overtrue/pinyin/data/words_4 +++ b/vendor/overtrue/pinyin/data/words_4 @@ -7113,7 +7113,7 @@ '啝' => ' hé', '啧' => ' zé', '啦' => ' la', - '啥' => ' shà', + '啥' => ' shá', '啤' => ' pí', '啣' => ' xián', '啢' => ' liǎng', @@ -8000,4 +8000,4 @@ '呣' => ' ḿ', '呢' => ' ne', '呡' => ' wěn', -); \ No newline at end of file +); diff --git a/vendor/overtrue/pinyin/src/FileDictLoader.php b/vendor/overtrue/pinyin/src/FileDictLoader.php index e9895f9b..82491105 100755 --- a/vendor/overtrue/pinyin/src/FileDictLoader.php +++ b/vendor/overtrue/pinyin/src/FileDictLoader.php @@ -13,9 +13,6 @@ namespace Overtrue\Pinyin; use Closure; -/** - * Dict File loader. - */ class FileDictLoader implements DictLoaderInterface { /** diff --git a/vendor/overtrue/pinyin/src/GeneratorFileDictLoader.php b/vendor/overtrue/pinyin/src/GeneratorFileDictLoader.php index e7da6421..96183cba 100755 --- a/vendor/overtrue/pinyin/src/GeneratorFileDictLoader.php +++ b/vendor/overtrue/pinyin/src/GeneratorFileDictLoader.php @@ -15,9 +15,6 @@ use Closure; use SplFileObject; use Generator; -/** - * Generator syntax(yield) Dict File loader. - */ class GeneratorFileDictLoader implements DictLoaderInterface { /** diff --git a/vendor/overtrue/pinyin/src/MemoryFileDictLoader.php b/vendor/overtrue/pinyin/src/MemoryFileDictLoader.php index e540fb85..834f756e 100755 --- a/vendor/overtrue/pinyin/src/MemoryFileDictLoader.php +++ b/vendor/overtrue/pinyin/src/MemoryFileDictLoader.php @@ -13,9 +13,6 @@ namespace Overtrue\Pinyin; use Closure; -/** - * Memory Dict File loader. - */ class MemoryFileDictLoader implements DictLoaderInterface { /** @@ -37,14 +34,14 @@ class MemoryFileDictLoader implements DictLoaderInterface * * @var array */ - protected $segments = array(); + protected $segments = []; /** * Surname cache. * * @var array */ - protected $surnames = array(); + protected $surnames = []; /** * Constructor. diff --git a/vendor/overtrue/pinyin/src/Pinyin.php b/vendor/overtrue/pinyin/src/Pinyin.php index 537c8c6d..97d9fb6f 100755 --- a/vendor/overtrue/pinyin/src/Pinyin.php +++ b/vendor/overtrue/pinyin/src/Pinyin.php @@ -13,21 +13,6 @@ namespace Overtrue\Pinyin; use InvalidArgumentException; -/* - * Chinese to pinyin translator. - * - * @author overtrue - * @copyright 2015 overtrue - * - * @link https://github.com/overtrue/pinyin - * @link http://overtrue.me - */ - -/** - * Class Pinyin. - * - * @author overtrue - */ class Pinyin { /** @@ -42,7 +27,7 @@ class Pinyin * * @var array */ - protected $punctuations = array( + protected $punctuations = [ ',' => ',', '。' => '.', '!' => '!', @@ -53,7 +38,7 @@ class Pinyin '‘' => "'", '’' => "'", '_' => '_', - ); + ]; /** * Constructor. @@ -109,10 +94,10 @@ class Pinyin public function permalink($string, $delimiter = '-', $option = PINYIN_DEFAULT) { if (\is_int($delimiter)) { - list($option, $delimiter) = array($delimiter, '-'); + list($option, $delimiter) = [$delimiter, '-']; } - if (!in_array($delimiter, array('_', '-', '.', ''), true)) { + if (!in_array($delimiter, ['_', '-', '.', ''], true)) { throw new InvalidArgumentException("Delimiter must be one of: '_', '-', '', '.'."); } @@ -131,12 +116,12 @@ class Pinyin public function abbr($string, $delimiter = '', $option = PINYIN_DEFAULT) { if (\is_int($delimiter)) { - list($option, $delimiter) = array($delimiter, ''); + list($option, $delimiter) = [$delimiter, '']; } return implode($delimiter, array_map(function ($pinyin) { - return \is_numeric($pinyin) ? $pinyin : mb_substr($pinyin, 0, 1); - }, $this->convert($string, $option))); + return \is_numeric($pinyin) || preg_match('/\d+/', $pinyin) ? $pinyin : mb_substr($pinyin, 0, 1); + }, $this->convert($string, $option | PINYIN_NO_TONE))); } /** @@ -151,7 +136,7 @@ class Pinyin public function phrase($string, $delimiter = ' ', $option = PINYIN_DEFAULT) { if (\is_int($delimiter)) { - list($option, $delimiter) = array($delimiter, ' '); + list($option, $delimiter) = [$delimiter, ' ']; } return implode($delimiter, $this->convert($string, $option)); @@ -169,7 +154,7 @@ class Pinyin public function sentence($string, $delimiter = ' ', $option = \PINYIN_NO_TONE) { if (\is_int($delimiter)) { - list($option, $delimiter) = array($delimiter, ' '); + list($option, $delimiter) = [$delimiter, ' ']; } return implode($delimiter, $this->convert($string, $option | \PINYIN_KEEP_PUNCTUATION | \PINYIN_KEEP_ENGLISH | \PINYIN_KEEP_NUMBER)); @@ -300,7 +285,7 @@ class Pinyin return "\t".$matches[0]; }, $string); - $regex = array('\p{Han}', '\p{Z}', '\p{M}', "\t"); + $regex = ['\p{Han}', '\p{Z}', '\p{M}', "\t"]; if ($this->hasOption($option, \PINYIN_KEEP_NUMBER)) { \array_push($regex, '0-9'); @@ -311,7 +296,7 @@ class Pinyin } if ($this->hasOption($option, \PINYIN_KEEP_PUNCTUATION)) { - $punctuations = array_merge($this->punctuations, array("\t" => ' ', ' ' => ' ')); + $punctuations = array_merge($this->punctuations, ["\t" => ' ', ' ' => ' ']); $string = trim(str_replace(array_keys($punctuations), $punctuations, $string)); \array_push($regex, preg_quote(implode(array_merge(array_keys($this->punctuations), $this->punctuations)), '~')); @@ -330,13 +315,13 @@ class Pinyin */ protected function formatTone($pinyin, $option = \PINYIN_NO_TONE) { - $replacements = array( - 'üē' => array('ue', 1), 'üé' => array('ue', 2), 'üě' => array('ue', 3), 'üè' => array('ue', 4), - 'ā' => array('a', 1), 'ē' => array('e', 1), 'ī' => array('i', 1), 'ō' => array('o', 1), 'ū' => array('u', 1), 'ǖ' => array('yu', 1), - 'á' => array('a', 2), 'é' => array('e', 2), 'í' => array('i', 2), 'ó' => array('o', 2), 'ú' => array('u', 2), 'ǘ' => array('yu', 2), - 'ǎ' => array('a', 3), 'ě' => array('e', 3), 'ǐ' => array('i', 3), 'ǒ' => array('o', 3), 'ǔ' => array('u', 3), 'ǚ' => array('yu', 3), - 'à' => array('a', 4), 'è' => array('e', 4), 'ì' => array('i', 4), 'ò' => array('o', 4), 'ù' => array('u', 4), 'ǜ' => array('yu', 4), - ); + $replacements = [ + 'üē' => ['ue', 1], 'üé' => ['ue', 2], 'üě' => ['ue', 3], 'üè' => ['ue', 4], + 'ā' => ['a', 1], 'ē' => ['e', 1], 'ī' => ['i', 1], 'ō' => ['o', 1], 'ū' => ['u', 1], 'ǖ' => ['yu', 1], + 'á' => ['a', 2], 'é' => ['e', 2], 'í' => ['i', 2], 'ó' => ['o', 2], 'ú' => ['u', 2], 'ǘ' => ['yu', 2], + 'ǎ' => ['a', 3], 'ě' => ['e', 3], 'ǐ' => ['i', 3], 'ǒ' => ['o', 3], 'ǔ' => ['u', 3], 'ǚ' => ['yu', 3], + 'à' => ['a', 4], 'è' => ['e', 4], 'ì' => ['i', 4], 'ò' => ['o', 4], 'ù' => ['u', 4], 'ǜ' => ['yu', 4], + ]; foreach ($replacements as $unicode => $replacement) { if (false !== strpos($pinyin, $unicode)) { diff --git a/vendor/services.php b/vendor/services.php index 009f934c..9d193842 100755 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'think\\captcha\\CaptchaService', diff --git a/vendor/symfony/var-dumper/Caster/DateCaster.php b/vendor/symfony/var-dumper/Caster/DateCaster.php index 6b264c79..171fbde5 100755 --- a/vendor/symfony/var-dumper/Caster/DateCaster.php +++ b/vendor/symfony/var-dumper/Caster/DateCaster.php @@ -92,7 +92,7 @@ class DateCaster if (\PHP_VERSION_ID >= 70107) { // see https://bugs.php.net/74639 foreach (clone $p as $i => $d) { if (self::PERIOD_LIMIT === $i) { - $now = new \DateTimeImmutable(); + $now = new \DateTimeImmutable('now', new \DateTimeZone('UTC')); $dates[] = sprintf('%s more', ($end = $p->getEndDate()) ? ceil(($end->format('U.u') - $d->format('U.u')) / ((int) $now->add($p->getDateInterval())->format('U.u') - (int) $now->format('U.u'))) : $p->recurrences - $i diff --git a/vendor/symfony/var-dumper/Caster/ReflectionCaster.php b/vendor/symfony/var-dumper/Caster/ReflectionCaster.php index 8d5f428e..95c1dbf6 100755 --- a/vendor/symfony/var-dumper/Caster/ReflectionCaster.php +++ b/vendor/symfony/var-dumper/Caster/ReflectionCaster.php @@ -96,11 +96,20 @@ class ReflectionCaster { $prefix = Caster::PREFIX_VIRTUAL; - $a += [ - $prefix.'name' => $c instanceof \ReflectionNamedType ? $c->getName() : (string) $c, - $prefix.'allowsNull' => $c->allowsNull(), - $prefix.'isBuiltin' => $c->isBuiltin(), - ]; + if ($c instanceof \ReflectionNamedType || \PHP_VERSION_ID < 80000) { + $a += [ + $prefix.'name' => $c instanceof \ReflectionNamedType ? $c->getName() : (string) $c, + $prefix.'allowsNull' => $c->allowsNull(), + $prefix.'isBuiltin' => $c->isBuiltin(), + ]; + } elseif ($c instanceof \ReflectionUnionType) { + $a[$prefix.'allowsNull'] = $c->allowsNull(); + self::addMap($a, $c, [ + 'types' => 'getTypes', + ]); + } else { + $a[$prefix.'allowsNull'] = $c->allowsNull(); + } return $a; } @@ -377,7 +386,7 @@ class ReflectionCaster } } - private static function addMap(array &$a, \Reflector $c, array $map, string $prefix = Caster::PREFIX_VIRTUAL) + private static function addMap(array &$a, $c, array $map, string $prefix = Caster::PREFIX_VIRTUAL) { foreach ($map as $k => $m) { if (\PHP_VERSION_ID >= 80000 && 'isDisabled' === $k) { diff --git a/vendor/symfony/var-dumper/Command/ServerDumpCommand.php b/vendor/symfony/var-dumper/Command/ServerDumpCommand.php index c8a61da9..3ec8353a 100755 --- a/vendor/symfony/var-dumper/Command/ServerDumpCommand.php +++ b/vendor/symfony/var-dumper/Command/ServerDumpCommand.php @@ -58,7 +58,7 @@ class ServerDumpCommand extends Command $this ->addOption('format', null, InputOption::VALUE_REQUIRED, sprintf('The output format (%s)', $availableFormats), 'cli') - ->setDescription('Starts a dump server that collects and displays dumps in a single place') + ->setDescription('Start a dump server that collects and displays dumps in a single place') ->setHelp(<<<'EOF' %command.name% starts a dump server that collects and displays dumps in a single place for debugging you application: