mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
同步代码
This commit is contained in:
parent
6bcd71f0e4
commit
169aa56840
@ -91,8 +91,9 @@ class Config extends Controller
|
||||
} else {
|
||||
$post = $this->request->post();
|
||||
if (!empty($post['storage']['allow_exts'])) {
|
||||
$deny = ['sh', 'bat', 'cmd', 'exe', 'php', 'asp'];
|
||||
$exts = array_unique(explode(',', strtolower($post['storage']['allow_exts'])));
|
||||
if (sort($exts) && in_array('php', $exts)) $this->error('禁止上传可执行的文件!');
|
||||
if (sort($exts) && in_array('php', $deny)) $this->error('禁止上传可执行的文件!');
|
||||
$post['storage']['allow_exts'] = join(',', $exts);
|
||||
}
|
||||
foreach ($post as $name => $value) sysconf($name, $value);
|
||||
|
@ -97,7 +97,6 @@ class Upload extends Controller
|
||||
* 文件上传入口
|
||||
* @login true
|
||||
* @return Json
|
||||
* @throws \think\admin\Exception
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
@ -105,27 +104,34 @@ class Upload extends Controller
|
||||
public function file(): Json
|
||||
{
|
||||
if (!($file = $this->getFile()) || empty($file)) {
|
||||
return json(['uploaded' => false, 'error' => ['message' => '文件上传异常,文件可能过大或未上传']]);
|
||||
return json(['uploaded' => false, 'error' => ['message' => '文件上传异常,文件过大或未上传!']]);
|
||||
}
|
||||
$this->extension = strtolower($file->getOriginalExtension());
|
||||
if (!in_array($this->extension, explode(',', strtolower(sysconf('storage.allow_exts'))))) {
|
||||
return json(['uploaded' => false, 'error' => ['message' => '文件上传类型受限,请在后台配置']]);
|
||||
return json(['uploaded' => false, 'error' => ['message' => '文件类型受限,请在后台配置规则!']]);
|
||||
}
|
||||
if (in_array($this->extension, ['php', 'sh'])) {
|
||||
return json(['uploaded' => false, 'error' => ['message' => '可执行文件禁止上传到本地服务器']]);
|
||||
if (in_array($this->extension, ['sh', 'bat', 'cmd', 'exe', 'php', 'asp'])) {
|
||||
return json(['uploaded' => false, 'error' => ['message' => '文件安全保护,可执行文件禁止上传!']]);
|
||||
}
|
||||
[$this->uptype, $this->safe, $this->name] = [$this->getType(), $this->getSafe(), input('key')];
|
||||
if (empty($this->name)) $this->name = Storage::name($file->getPathname(), $this->extension, '', 'md5_file');
|
||||
try {
|
||||
if ($this->uptype === 'local') {
|
||||
$local = LocalStorage::instance();
|
||||
$realpath = dirname($realname = $local->path($this->name, $this->safe));
|
||||
file_exists($realpath) && is_dir($realpath) || mkdir($realpath, 0755, true);
|
||||
@rename($file->getPathname(), $realname);
|
||||
if (rename($file->getPathname(), $realname)) {
|
||||
$info = $local->info($this->name, $this->safe, $file->getOriginalName());
|
||||
} else {
|
||||
return json(['uploaded' => false, 'error' => ['message' => '文件移动处理失败!']]);
|
||||
}
|
||||
} else {
|
||||
$bina = file_get_contents($file->getRealPath());
|
||||
$info = Storage::instance($this->uptype)->set($this->name, $bina, $this->safe, $file->getOriginalName());
|
||||
}
|
||||
} catch (\Exception $exception) {
|
||||
return json(['uploaded' => false, 'error' => ['message' => $exception->getMessage()]]);
|
||||
}
|
||||
if (is_array($info) && isset($info['url'])) {
|
||||
return json(['uploaded' => true, 'filename' => $this->name, 'url' => $this->safe ? $this->name : $info['url']]);
|
||||
} else {
|
||||
@ -165,7 +171,12 @@ class Upload extends Controller
|
||||
private function getFile(): UploadedFile
|
||||
{
|
||||
try {
|
||||
return $this->request->file('file');
|
||||
$file = $this->request->file('file');
|
||||
if ($file instanceof UploadedFile) {
|
||||
return $file;
|
||||
} else {
|
||||
$this->error('读取文件对象失败!');
|
||||
}
|
||||
} catch (\Exception $exception) {
|
||||
$this->error(lang($exception->getMessage()));
|
||||
}
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
use app\wechat\service\AutoService;
|
||||
use think\admin\Controller;
|
||||
|
||||
/**
|
||||
@ -28,9 +27,4 @@ class Index extends Controller
|
||||
{
|
||||
$this->redirect(sysuri('admin/login/index'));
|
||||
}
|
||||
|
||||
public function test()
|
||||
{
|
||||
dump(AutoService::instance()->parseTimeString('00小时00分01秒'));
|
||||
}
|
||||
}
|
38
vendor/composer/ClassLoader.php
vendored
38
vendor/composer/ClassLoader.php
vendored
@ -37,11 +37,13 @@ namespace Composer\Autoload;
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||
* @see http://www.php-fig.org/psr/psr-0/
|
||||
* @see http://www.php-fig.org/psr/psr-4/
|
||||
* @see https://www.php-fig.org/psr/psr-0/
|
||||
* @see https://www.php-fig.org/psr/psr-4/
|
||||
*/
|
||||
class ClassLoader
|
||||
{
|
||||
private $vendorDir;
|
||||
|
||||
// PSR-4
|
||||
private $prefixLengthsPsr4 = array();
|
||||
private $prefixDirsPsr4 = array();
|
||||
@ -57,6 +59,13 @@ class ClassLoader
|
||||
private $missingClasses = array();
|
||||
private $apcuPrefix;
|
||||
|
||||
private static $registeredLoaders = array();
|
||||
|
||||
public function __construct($vendorDir = null)
|
||||
{
|
||||
$this->vendorDir = $vendorDir;
|
||||
}
|
||||
|
||||
public function getPrefixes()
|
||||
{
|
||||
if (!empty($this->prefixesPsr0)) {
|
||||
@ -300,6 +309,17 @@ class ClassLoader
|
||||
public function register($prepend = false)
|
||||
{
|
||||
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
|
||||
|
||||
if (null === $this->vendorDir) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($prepend) {
|
||||
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
|
||||
} else {
|
||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||
self::$registeredLoaders[$this->vendorDir] = $this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -308,6 +328,10 @@ class ClassLoader
|
||||
public function unregister()
|
||||
{
|
||||
spl_autoload_unregister(array($this, 'loadClass'));
|
||||
|
||||
if (null !== $this->vendorDir) {
|
||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -367,6 +391,16 @@ class ClassLoader
|
||||
return $file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the currently registered loaders indexed by their corresponding vendor directories.
|
||||
*
|
||||
* @return self[]
|
||||
*/
|
||||
public static function getRegisteredLoaders()
|
||||
{
|
||||
return self::$registeredLoaders;
|
||||
}
|
||||
|
||||
private function findFileWithExtension($class, $ext)
|
||||
{
|
||||
// PSR-4 lookup
|
||||
|
430
vendor/composer/InstalledVersions.php
vendored
Normal file
430
vendor/composer/InstalledVersions.php
vendored
Normal file
@ -0,0 +1,430 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
namespace Composer;
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Composer\Semver\VersionParser;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class InstalledVersions
|
||||
{
|
||||
private static $installed = array (
|
||||
'root' =>
|
||||
array (
|
||||
'pretty_version' => '6.x-dev',
|
||||
'version' => '6.9999999.9999999.9999999-dev',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '6bcd71f0e4e546ff525c8e84c1c6667cc581acc0',
|
||||
'name' => 'zoujingli/thinkadmin',
|
||||
),
|
||||
'versions' =>
|
||||
array (
|
||||
'endroid/qr-code' =>
|
||||
array (
|
||||
'pretty_version' => '1.9.3',
|
||||
'version' => '1.9.3.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'c9644bec2a9cc9318e98d1437de3c628dcd1ef93',
|
||||
),
|
||||
'league/flysystem' =>
|
||||
array (
|
||||
'pretty_version' => '1.0.70',
|
||||
'version' => '1.0.70.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '585824702f534f8d3cf7fab7225e8466cc4b7493',
|
||||
),
|
||||
'league/flysystem-cached-adapter' =>
|
||||
array (
|
||||
'pretty_version' => '1.1.0',
|
||||
'version' => '1.1.0.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'd1925efb2207ac4be3ad0c40b8277175f99ffaff',
|
||||
),
|
||||
'psr/cache' =>
|
||||
array (
|
||||
'pretty_version' => '1.0.1',
|
||||
'version' => '1.0.1.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'd11b50ad223250cf17b86e38383413f5a6764bf8',
|
||||
),
|
||||
'psr/container' =>
|
||||
array (
|
||||
'pretty_version' => '1.0.0',
|
||||
'version' => '1.0.0.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',
|
||||
),
|
||||
'psr/log' =>
|
||||
array (
|
||||
'pretty_version' => '1.1.4',
|
||||
'version' => '1.1.4.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11',
|
||||
),
|
||||
'psr/simple-cache' =>
|
||||
array (
|
||||
'pretty_version' => '1.0.1',
|
||||
'version' => '1.0.1.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '408d5eafb83c57f6365a3ca330ff23aa4a5fa39b',
|
||||
),
|
||||
'symfony/options-resolver' =>
|
||||
array (
|
||||
'pretty_version' => 'v3.4.47',
|
||||
'version' => '3.4.47.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'c7efc97a47b2ebaabc19d5b6c6b50f5c37c92744',
|
||||
),
|
||||
'topthink/framework' =>
|
||||
array (
|
||||
'pretty_version' => 'v6.0.8',
|
||||
'version' => '6.0.8.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '4789343672aef06d571d556da369c0e156609bce',
|
||||
),
|
||||
'topthink/think-helper' =>
|
||||
array (
|
||||
'pretty_version' => 'v3.1.4',
|
||||
'version' => '3.1.4.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'c28d37743bda4a0455286ca85b17b5791d626e10',
|
||||
),
|
||||
'topthink/think-orm' =>
|
||||
array (
|
||||
'pretty_version' => 'v2.0.40',
|
||||
'version' => '2.0.40.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '1119d979b850849f3725856460cf108eec1c3eb8',
|
||||
),
|
||||
'topthink/think-template' =>
|
||||
array (
|
||||
'pretty_version' => 'v2.0.8',
|
||||
'version' => '2.0.8.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'abfc293f74f9ef5127b5c416310a01fe42e59368',
|
||||
),
|
||||
'topthink/think-view' =>
|
||||
array (
|
||||
'pretty_version' => 'v1.0.14',
|
||||
'version' => '1.0.14.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'edce0ae2c9551ab65f9e94a222604b0dead3576d',
|
||||
),
|
||||
'zoujingli/ip2region' =>
|
||||
array (
|
||||
'pretty_version' => 'v1.0.10',
|
||||
'version' => '1.0.10.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '453480d0ab5b6fdbdf4aa400b7598a10ff2dc5c0',
|
||||
),
|
||||
'zoujingli/think-library' =>
|
||||
array (
|
||||
'pretty_version' => 'v6.0.x-dev',
|
||||
'version' => '6.0.9999999.9999999-dev',
|
||||
'aliases' =>
|
||||
array (
|
||||
0 => '9999999-dev',
|
||||
),
|
||||
'reference' => 'aef0fcd19d5ad9c49ed2da1001243a5d5d9c9ca2',
|
||||
),
|
||||
'zoujingli/thinkadmin' =>
|
||||
array (
|
||||
'pretty_version' => '6.x-dev',
|
||||
'version' => '6.9999999.9999999.9999999-dev',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '6bcd71f0e4e546ff525c8e84c1c6667cc581acc0',
|
||||
),
|
||||
'zoujingli/wechat-developer' =>
|
||||
array (
|
||||
'pretty_version' => 'v1.2.30',
|
||||
'version' => '1.2.30.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '4ba213dceae358c028dd23a0572e0c85cb6be2aa',
|
||||
),
|
||||
),
|
||||
);
|
||||
private static $canGetVendors;
|
||||
private static $installedByVendor = array();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function getInstalledPackages()
|
||||
{
|
||||
$packages = array();
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
$packages[] = array_keys($installed['versions']);
|
||||
}
|
||||
|
||||
if (1 === \count($packages)) {
|
||||
return $packages[0];
|
||||
}
|
||||
|
||||
return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function isInstalled($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (isset($installed['versions'][$packageName])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
||||
{
|
||||
$constraint = $parser->parseConstraints($constraint);
|
||||
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
||||
|
||||
return $provided->matches($constraint);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function getVersionRanges($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$ranges = array();
|
||||
if (isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
if (array_key_exists('aliases', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
|
||||
}
|
||||
if (array_key_exists('replaced', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
|
||||
}
|
||||
if (array_key_exists('provided', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
|
||||
}
|
||||
|
||||
return implode(' || ', $ranges);
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function getVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function getPrettyVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function getReference($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['reference'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['reference'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function getRootPackage()
|
||||
{
|
||||
$installed = self::getInstalled();
|
||||
|
||||
return $installed[0]['root'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function getRawData()
|
||||
{
|
||||
return self::$installed;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function reload($data)
|
||||
{
|
||||
self::$installed = $data;
|
||||
self::$installedByVendor = array();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static function getInstalled()
|
||||
{
|
||||
if (null === self::$canGetVendors) {
|
||||
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
|
||||
}
|
||||
|
||||
$installed = array();
|
||||
|
||||
if (self::$canGetVendors) {
|
||||
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
|
||||
if (isset(self::$installedByVendor[$vendorDir])) {
|
||||
$installed[] = self::$installedByVendor[$vendorDir];
|
||||
} elseif (is_file($vendorDir.'/composer/installed.php')) {
|
||||
$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$installed[] = self::$installed;
|
||||
|
||||
return $installed;
|
||||
}
|
||||
}
|
2
vendor/composer/autoload_classmap.php
vendored
2
vendor/composer/autoload_classmap.php
vendored
@ -14,6 +14,7 @@ return array(
|
||||
'AliPay\\Transfer' => $vendorDir . '/zoujingli/wechat-developer/AliPay/Transfer.php',
|
||||
'AliPay\\Wap' => $vendorDir . '/zoujingli/wechat-developer/AliPay/Wap.php',
|
||||
'AliPay\\Web' => $vendorDir . '/zoujingli/wechat-developer/AliPay/Web.php',
|
||||
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||
'Endroid\\QrCode\\Bundle\\Controller\\QrCodeController' => $vendorDir . '/endroid/qr-code/src/Bundle/Controller/QrCodeController.php',
|
||||
'Endroid\\QrCode\\Bundle\\DependencyInjection\\Configuration' => $vendorDir . '/endroid/qr-code/src/Bundle/DependencyInjection/Configuration.php',
|
||||
'Endroid\\QrCode\\Bundle\\DependencyInjection\\EndroidQrCodeExtension' => $vendorDir . '/endroid/qr-code/src/Bundle/DependencyInjection/EndroidQrCodeExtension.php',
|
||||
@ -470,7 +471,6 @@ return array(
|
||||
'think\\facade\\Db' => $vendorDir . '/topthink/think-orm/src/facade/Db.php',
|
||||
'think\\facade\\Env' => $vendorDir . '/topthink/framework/src/think/facade/Env.php',
|
||||
'think\\facade\\Event' => $vendorDir . '/topthink/framework/src/think/facade/Event.php',
|
||||
'think\\facade\\Facade' => $vendorDir . '/topthink/think-template/src/facade/Template.php',
|
||||
'think\\facade\\Filesystem' => $vendorDir . '/topthink/framework/src/think/facade/Filesystem.php',
|
||||
'think\\facade\\Lang' => $vendorDir . '/topthink/framework/src/think/facade/Lang.php',
|
||||
'think\\facade\\Log' => $vendorDir . '/topthink/framework/src/think/facade/Log.php',
|
||||
|
6
vendor/composer/autoload_real.php
vendored
6
vendor/composer/autoload_real.php
vendored
@ -22,13 +22,15 @@ class ComposerAutoloaderInit3e3e984682c06e656fe76c5d84347fb3
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
require __DIR__ . '/platform_check.php';
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit3e3e984682c06e656fe76c5d84347fb3', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit3e3e984682c06e656fe76c5d84347fb3', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require_once __DIR__ . '/autoload_static.php';
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit3e3e984682c06e656fe76c5d84347fb3::getInitializer($loader));
|
||||
} else {
|
||||
|
2
vendor/composer/autoload_static.php
vendored
2
vendor/composer/autoload_static.php
vendored
@ -143,6 +143,7 @@ class ComposerStaticInit3e3e984682c06e656fe76c5d84347fb3
|
||||
'AliPay\\Transfer' => __DIR__ . '/..' . '/zoujingli/wechat-developer/AliPay/Transfer.php',
|
||||
'AliPay\\Wap' => __DIR__ . '/..' . '/zoujingli/wechat-developer/AliPay/Wap.php',
|
||||
'AliPay\\Web' => __DIR__ . '/..' . '/zoujingli/wechat-developer/AliPay/Web.php',
|
||||
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
||||
'Endroid\\QrCode\\Bundle\\Controller\\QrCodeController' => __DIR__ . '/..' . '/endroid/qr-code/src/Bundle/Controller/QrCodeController.php',
|
||||
'Endroid\\QrCode\\Bundle\\DependencyInjection\\Configuration' => __DIR__ . '/..' . '/endroid/qr-code/src/Bundle/DependencyInjection/Configuration.php',
|
||||
'Endroid\\QrCode\\Bundle\\DependencyInjection\\EndroidQrCodeExtension' => __DIR__ . '/..' . '/endroid/qr-code/src/Bundle/DependencyInjection/EndroidQrCodeExtension.php',
|
||||
@ -599,7 +600,6 @@ class ComposerStaticInit3e3e984682c06e656fe76c5d84347fb3
|
||||
'think\\facade\\Db' => __DIR__ . '/..' . '/topthink/think-orm/src/facade/Db.php',
|
||||
'think\\facade\\Env' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Env.php',
|
||||
'think\\facade\\Event' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Event.php',
|
||||
'think\\facade\\Facade' => __DIR__ . '/..' . '/topthink/think-template/src/facade/Template.php',
|
||||
'think\\facade\\Filesystem' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Filesystem.php',
|
||||
'think\\facade\\Lang' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Lang.php',
|
||||
'think\\facade\\Log' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Log.php',
|
||||
|
72
vendor/composer/installed.json
vendored
72
vendor/composer/installed.json
vendored
@ -1,4 +1,5 @@
|
||||
[
|
||||
{
|
||||
"packages": [
|
||||
{
|
||||
"name": "endroid/qr-code",
|
||||
"version": "1.9.3",
|
||||
@ -65,7 +66,8 @@
|
||||
"qr",
|
||||
"qrcode",
|
||||
"symfony"
|
||||
]
|
||||
],
|
||||
"install-path": "../endroid/qr-code"
|
||||
},
|
||||
{
|
||||
"name": "league/flysystem",
|
||||
@ -163,7 +165,8 @@
|
||||
"url": "https://offset.earth/frankdejonge",
|
||||
"type": "other"
|
||||
}
|
||||
]
|
||||
],
|
||||
"install-path": "../league/flysystem"
|
||||
},
|
||||
{
|
||||
"name": "league/flysystem-cached-adapter",
|
||||
@ -218,7 +221,8 @@
|
||||
"email": "info@frenky.net"
|
||||
}
|
||||
],
|
||||
"description": "An adapter decorator to enable meta-data caching."
|
||||
"description": "An adapter decorator to enable meta-data caching.",
|
||||
"install-path": "../league/flysystem-cached-adapter"
|
||||
},
|
||||
{
|
||||
"name": "psr/cache",
|
||||
@ -272,7 +276,8 @@
|
||||
"cache",
|
||||
"psr",
|
||||
"psr-6"
|
||||
]
|
||||
],
|
||||
"install-path": "../psr/cache"
|
||||
},
|
||||
{
|
||||
"name": "psr/container",
|
||||
@ -329,7 +334,8 @@
|
||||
"container-interface",
|
||||
"container-interop",
|
||||
"psr"
|
||||
]
|
||||
],
|
||||
"install-path": "../psr/container"
|
||||
},
|
||||
{
|
||||
"name": "psr/log",
|
||||
@ -384,7 +390,8 @@
|
||||
"log",
|
||||
"psr",
|
||||
"psr-3"
|
||||
]
|
||||
],
|
||||
"install-path": "../psr/log"
|
||||
},
|
||||
{
|
||||
"name": "psr/simple-cache",
|
||||
@ -440,7 +447,8 @@
|
||||
"psr",
|
||||
"psr-16",
|
||||
"simple-cache"
|
||||
]
|
||||
],
|
||||
"install-path": "../psr/simple-cache"
|
||||
},
|
||||
{
|
||||
"name": "symfony/options-resolver",
|
||||
@ -511,7 +519,8 @@
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
]
|
||||
],
|
||||
"install-path": "../symfony/options-resolver"
|
||||
},
|
||||
{
|
||||
"name": "topthink/framework",
|
||||
@ -580,7 +589,8 @@
|
||||
"framework",
|
||||
"orm",
|
||||
"thinkphp"
|
||||
]
|
||||
],
|
||||
"install-path": "../topthink/framework"
|
||||
},
|
||||
{
|
||||
"name": "topthink/think-helper",
|
||||
@ -627,7 +637,8 @@
|
||||
"email": "448901948@qq.com"
|
||||
}
|
||||
],
|
||||
"description": "The ThinkPHP6 Helper Package"
|
||||
"description": "The ThinkPHP6 Helper Package",
|
||||
"install-path": "../topthink/think-helper"
|
||||
},
|
||||
{
|
||||
"name": "topthink/think-orm",
|
||||
@ -686,7 +697,8 @@
|
||||
"keywords": [
|
||||
"database",
|
||||
"orm"
|
||||
]
|
||||
],
|
||||
"install-path": "../topthink/think-orm"
|
||||
},
|
||||
{
|
||||
"name": "topthink/think-template",
|
||||
@ -731,7 +743,8 @@
|
||||
"email": "liu21st@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "the php template engine"
|
||||
"description": "the php template engine",
|
||||
"install-path": "../topthink/think-template"
|
||||
},
|
||||
{
|
||||
"name": "topthink/think-view",
|
||||
@ -776,7 +789,8 @@
|
||||
"email": "liu21st@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "thinkphp template driver"
|
||||
"description": "thinkphp template driver",
|
||||
"install-path": "../topthink/think-view"
|
||||
},
|
||||
{
|
||||
"name": "zoujingli/ip2region",
|
||||
@ -825,7 +839,8 @@
|
||||
"homepage": "https://github.com/zoujingli/Ip2Region",
|
||||
"keywords": [
|
||||
"Ip2Region"
|
||||
]
|
||||
],
|
||||
"install-path": "../zoujingli/ip2region"
|
||||
},
|
||||
{
|
||||
"name": "zoujingli/think-library",
|
||||
@ -834,12 +849,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "361caa1f19e990422b0ca089b44961666861e28d"
|
||||
"reference": "aef0fcd19d5ad9c49ed2da1001243a5d5d9c9ca2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/361caa1f19e990422b0ca089b44961666861e28d",
|
||||
"reference": "361caa1f19e990422b0ca089b44961666861e28d",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/aef0fcd19d5ad9c49ed2da1001243a5d5d9c9ca2",
|
||||
"reference": "aef0fcd19d5ad9c49ed2da1001243a5d5d9c9ca2",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -856,7 +871,8 @@
|
||||
"ext-mbstring": "*",
|
||||
"topthink/framework": "^6.0"
|
||||
},
|
||||
"time": "2021-04-26T09:07:36+00:00",
|
||||
"time": "2021-05-06T02:52:35+00:00",
|
||||
"default-branch": true,
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"think": {
|
||||
@ -885,7 +901,15 @@
|
||||
}
|
||||
],
|
||||
"description": "ThinkPHP v6.0 Development Library",
|
||||
"homepage": "http://thinkadmin.top"
|
||||
"homepage": "http://thinkadmin.top",
|
||||
"support": {
|
||||
"email": "zoujingli@qq.com",
|
||||
"forum": "https://thinkadmin.top",
|
||||
"issues": "https://gitee.com/zoujingli/ThinkLibrary/issues",
|
||||
"source": "https://gitee.com/zoujingli/ThinkLibrary",
|
||||
"wiki": "https://thinkadmin.top"
|
||||
},
|
||||
"install-path": "../zoujingli/think-library"
|
||||
},
|
||||
{
|
||||
"name": "zoujingli/wechat-developer",
|
||||
@ -954,6 +978,10 @@
|
||||
"wechat",
|
||||
"wechatpay",
|
||||
"wepay"
|
||||
]
|
||||
],
|
||||
"install-path": "../zoujingli/wechat-developer"
|
||||
}
|
||||
],
|
||||
"dev": false,
|
||||
"dev-package-names": []
|
||||
}
|
||||
]
|
||||
|
169
vendor/composer/installed.php
vendored
Normal file
169
vendor/composer/installed.php
vendored
Normal file
@ -0,0 +1,169 @@
|
||||
<?php return array (
|
||||
'root' =>
|
||||
array (
|
||||
'pretty_version' => '6.x-dev',
|
||||
'version' => '6.9999999.9999999.9999999-dev',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '6bcd71f0e4e546ff525c8e84c1c6667cc581acc0',
|
||||
'name' => 'zoujingli/thinkadmin',
|
||||
),
|
||||
'versions' =>
|
||||
array (
|
||||
'endroid/qr-code' =>
|
||||
array (
|
||||
'pretty_version' => '1.9.3',
|
||||
'version' => '1.9.3.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'c9644bec2a9cc9318e98d1437de3c628dcd1ef93',
|
||||
),
|
||||
'league/flysystem' =>
|
||||
array (
|
||||
'pretty_version' => '1.0.70',
|
||||
'version' => '1.0.70.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '585824702f534f8d3cf7fab7225e8466cc4b7493',
|
||||
),
|
||||
'league/flysystem-cached-adapter' =>
|
||||
array (
|
||||
'pretty_version' => '1.1.0',
|
||||
'version' => '1.1.0.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'd1925efb2207ac4be3ad0c40b8277175f99ffaff',
|
||||
),
|
||||
'psr/cache' =>
|
||||
array (
|
||||
'pretty_version' => '1.0.1',
|
||||
'version' => '1.0.1.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'd11b50ad223250cf17b86e38383413f5a6764bf8',
|
||||
),
|
||||
'psr/container' =>
|
||||
array (
|
||||
'pretty_version' => '1.0.0',
|
||||
'version' => '1.0.0.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',
|
||||
),
|
||||
'psr/log' =>
|
||||
array (
|
||||
'pretty_version' => '1.1.4',
|
||||
'version' => '1.1.4.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11',
|
||||
),
|
||||
'psr/simple-cache' =>
|
||||
array (
|
||||
'pretty_version' => '1.0.1',
|
||||
'version' => '1.0.1.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '408d5eafb83c57f6365a3ca330ff23aa4a5fa39b',
|
||||
),
|
||||
'symfony/options-resolver' =>
|
||||
array (
|
||||
'pretty_version' => 'v3.4.47',
|
||||
'version' => '3.4.47.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'c7efc97a47b2ebaabc19d5b6c6b50f5c37c92744',
|
||||
),
|
||||
'topthink/framework' =>
|
||||
array (
|
||||
'pretty_version' => 'v6.0.8',
|
||||
'version' => '6.0.8.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '4789343672aef06d571d556da369c0e156609bce',
|
||||
),
|
||||
'topthink/think-helper' =>
|
||||
array (
|
||||
'pretty_version' => 'v3.1.4',
|
||||
'version' => '3.1.4.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'c28d37743bda4a0455286ca85b17b5791d626e10',
|
||||
),
|
||||
'topthink/think-orm' =>
|
||||
array (
|
||||
'pretty_version' => 'v2.0.40',
|
||||
'version' => '2.0.40.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '1119d979b850849f3725856460cf108eec1c3eb8',
|
||||
),
|
||||
'topthink/think-template' =>
|
||||
array (
|
||||
'pretty_version' => 'v2.0.8',
|
||||
'version' => '2.0.8.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'abfc293f74f9ef5127b5c416310a01fe42e59368',
|
||||
),
|
||||
'topthink/think-view' =>
|
||||
array (
|
||||
'pretty_version' => 'v1.0.14',
|
||||
'version' => '1.0.14.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => 'edce0ae2c9551ab65f9e94a222604b0dead3576d',
|
||||
),
|
||||
'zoujingli/ip2region' =>
|
||||
array (
|
||||
'pretty_version' => 'v1.0.10',
|
||||
'version' => '1.0.10.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '453480d0ab5b6fdbdf4aa400b7598a10ff2dc5c0',
|
||||
),
|
||||
'zoujingli/think-library' =>
|
||||
array (
|
||||
'pretty_version' => 'v6.0.x-dev',
|
||||
'version' => '6.0.9999999.9999999-dev',
|
||||
'aliases' =>
|
||||
array (
|
||||
0 => '9999999-dev',
|
||||
),
|
||||
'reference' => 'aef0fcd19d5ad9c49ed2da1001243a5d5d9c9ca2',
|
||||
),
|
||||
'zoujingli/thinkadmin' =>
|
||||
array (
|
||||
'pretty_version' => '6.x-dev',
|
||||
'version' => '6.9999999.9999999.9999999-dev',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '6bcd71f0e4e546ff525c8e84c1c6667cc581acc0',
|
||||
),
|
||||
'zoujingli/wechat-developer' =>
|
||||
array (
|
||||
'pretty_version' => 'v1.2.30',
|
||||
'version' => '1.2.30.0',
|
||||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '4ba213dceae358c028dd23a0572e0c85cb6be2aa',
|
||||
),
|
||||
),
|
||||
);
|
26
vendor/composer/platform_check.php
vendored
Normal file
26
vendor/composer/platform_check.php
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
// platform_check.php @generated by Composer
|
||||
|
||||
$issues = array();
|
||||
|
||||
if (!(PHP_VERSION_ID >= 70100)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.0". You are running ' . PHP_VERSION . '.';
|
||||
}
|
||||
|
||||
if ($issues) {
|
||||
if (!headers_sent()) {
|
||||
header('HTTP/1.1 500 Internal Server Error');
|
||||
}
|
||||
if (!ini_get('display_errors')) {
|
||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
|
||||
} elseif (!headers_sent()) {
|
||||
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
|
||||
}
|
||||
}
|
||||
trigger_error(
|
||||
'Composer detected issues in your platform: ' . implode(' ', $issues),
|
||||
E_USER_ERROR
|
||||
);
|
||||
}
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// This file is automatically generated at:2021-05-06 09:38:13
|
||||
// This file is automatically generated at:2021-05-08 14:09:03
|
||||
declare (strict_types = 1);
|
||||
return array (
|
||||
0 => 'think\\admin\\Library',
|
||||
|
@ -107,7 +107,7 @@ class ProcessService extends Service
|
||||
* @param string $name 执行名称
|
||||
* @return array
|
||||
*/
|
||||
public function query(string $command, $name = 'php.exe'): array
|
||||
public function query(string $command, string $name = 'php.exe'): array
|
||||
{
|
||||
$list = [];
|
||||
if ($this->iswin()) {
|
||||
@ -145,7 +145,7 @@ class ProcessService extends Service
|
||||
/**
|
||||
* 立即执行指令
|
||||
* @param string $command 执行指令
|
||||
* @param boolean $outarr 返回类型
|
||||
* @param array|boolean $outarr 返回类型
|
||||
* @return string|array
|
||||
*/
|
||||
public function exec(string $command, $outarr = false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user