mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
[更新]CompoesrUpdate
This commit is contained in:
parent
2185124af1
commit
b3677f40b3
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInita4736b8e26b3d9588498333bda302ae0::getLoader();
|
||||
return ComposerAutoloaderInit3f46c2633b90dc529f1c66b4dabe4fa2::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInita4736b8e26b3d9588498333bda302ae0
|
||||
class ComposerAutoloaderInit3f46c2633b90dc529f1c66b4dabe4fa2
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInita4736b8e26b3d9588498333bda302ae0
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInita4736b8e26b3d9588498333bda302ae0', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit3f46c2633b90dc529f1c66b4dabe4fa2', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInita4736b8e26b3d9588498333bda302ae0', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit3f46c2633b90dc529f1c66b4dabe4fa2', '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';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInita4736b8e26b3d9588498333bda302ae0::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit3f46c2633b90dc529f1c66b4dabe4fa2::getInitializer($loader));
|
||||
} else {
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInita4736b8e26b3d9588498333bda302ae0
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInita4736b8e26b3d9588498333bda302ae0::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit3f46c2633b90dc529f1c66b4dabe4fa2::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirea4736b8e26b3d9588498333bda302ae0($fileIdentifier, $file);
|
||||
composerRequire3f46c2633b90dc529f1c66b4dabe4fa2($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequirea4736b8e26b3d9588498333bda302ae0($fileIdentifier, $file)
|
||||
function composerRequire3f46c2633b90dc529f1c66b4dabe4fa2($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInita4736b8e26b3d9588498333bda302ae0
|
||||
class ComposerStaticInit3f46c2633b90dc529f1c66b4dabe4fa2
|
||||
{
|
||||
public static $files = array (
|
||||
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
||||
@ -347,9 +347,9 @@ class ComposerStaticInita4736b8e26b3d9588498333bda302ae0
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInita4736b8e26b3d9588498333bda302ae0::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInita4736b8e26b3d9588498333bda302ae0::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInita4736b8e26b3d9588498333bda302ae0::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit3f46c2633b90dc529f1c66b4dabe4fa2::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit3f46c2633b90dc529f1c66b4dabe4fa2::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit3f46c2633b90dc529f1c66b4dabe4fa2::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -502,12 +502,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "c278499d1e7be0db3b76388112ae26038205d052"
|
||||
"reference": "b13d79c63a28ee81c31a7f2503ca82635bce8e1d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/c278499d1e7be0db3b76388112ae26038205d052",
|
||||
"reference": "c278499d1e7be0db3b76388112ae26038205d052",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/b13d79c63a28ee81c31a7f2503ca82635bce8e1d",
|
||||
"reference": "b13d79c63a28ee81c31a7f2503ca82635bce8e1d",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -526,7 +526,7 @@
|
||||
"qiniu/php-sdk": "^7.2",
|
||||
"topthink/framework": "5.1.*"
|
||||
},
|
||||
"time": "2019-07-20T03:04:58+00:00",
|
||||
"time": "2019-07-31T03:00:34+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
|
12
vendor/zoujingli/think-library/src/File.php
vendored
12
vendor/zoujingli/think-library/src/File.php
vendored
@ -165,15 +165,21 @@ class File
|
||||
/**
|
||||
* 下载文件到本地
|
||||
* @param string $url 文件URL地址
|
||||
* @param boolean $force 是否强制重新下载文件
|
||||
* @param boolean $force 是否强制下载
|
||||
* @param integer $expire 文件保留时间
|
||||
* @return array
|
||||
*/
|
||||
public static function down($url, $force = false)
|
||||
public static function down($url, $force = false, $expire = 0)
|
||||
{
|
||||
try {
|
||||
$file = self::instance('local');
|
||||
$name = self::name($url, '', 'down/');
|
||||
if (empty($force) && $file->has($name)) return $file->info($name);
|
||||
if ($file->has($name) && empty($force)) {
|
||||
if (empty($expire)) return $file->info($name);
|
||||
if (filemtime($file->path($name)) + $expire > time()) {
|
||||
return $file->info($name);
|
||||
}
|
||||
}
|
||||
return $file->save($name, file_get_contents($url));
|
||||
} catch (\Exception $e) {
|
||||
Log::error(__METHOD__ . " File download failed [ {$url} ] {$e->getMessage()}");
|
||||
|
@ -32,7 +32,7 @@ class Plugs extends Sync
|
||||
protected function configure()
|
||||
{
|
||||
$this->modules = ['public/static/'];
|
||||
$this->setName('xsync:plugs')->setDescription('从远程覆盖本地Plugs资源插件等代码');
|
||||
$this->setName('xsync:plugs')->setDescription('从远程覆盖本地Plugs资源插件所有代码');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user