mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]ComposerUpdate
This commit is contained in:
parent
3efba186a5
commit
9777bdbd96
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
require_once __DIR__ . '/composer/autoload_real.php';
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
return ComposerAutoloaderInit0fb64a24b8fcf6c274d9f346ead546e5::getLoader();
|
return ComposerAutoloaderInitbf3d7bafba7856774655ae55ece6c5ec::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
|
// autoload_real.php @generated by Composer
|
||||||
|
|
||||||
class ComposerAutoloaderInit0fb64a24b8fcf6c274d9f346ead546e5
|
class ComposerAutoloaderInitbf3d7bafba7856774655ae55ece6c5ec
|
||||||
{
|
{
|
||||||
private static $loader;
|
private static $loader;
|
||||||
|
|
||||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInit0fb64a24b8fcf6c274d9f346ead546e5
|
|||||||
return self::$loader;
|
return self::$loader;
|
||||||
}
|
}
|
||||||
|
|
||||||
spl_autoload_register(array('ComposerAutoloaderInit0fb64a24b8fcf6c274d9f346ead546e5', 'loadClassLoader'), true, true);
|
spl_autoload_register(array('ComposerAutoloaderInitbf3d7bafba7856774655ae55ece6c5ec', 'loadClassLoader'), true, true);
|
||||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||||
spl_autoload_unregister(array('ComposerAutoloaderInit0fb64a24b8fcf6c274d9f346ead546e5', 'loadClassLoader'));
|
spl_autoload_unregister(array('ComposerAutoloaderInitbf3d7bafba7856774655ae55ece6c5ec', 'loadClassLoader'));
|
||||||
|
|
||||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||||
if ($useStaticLoader) {
|
if ($useStaticLoader) {
|
||||||
require_once __DIR__ . '/autoload_static.php';
|
require_once __DIR__ . '/autoload_static.php';
|
||||||
|
|
||||||
call_user_func(\Composer\Autoload\ComposerStaticInit0fb64a24b8fcf6c274d9f346ead546e5::getInitializer($loader));
|
call_user_func(\Composer\Autoload\ComposerStaticInitbf3d7bafba7856774655ae55ece6c5ec::getInitializer($loader));
|
||||||
} else {
|
} else {
|
||||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||||
foreach ($map as $namespace => $path) {
|
foreach ($map as $namespace => $path) {
|
||||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInit0fb64a24b8fcf6c274d9f346ead546e5
|
|||||||
$loader->register(true);
|
$loader->register(true);
|
||||||
|
|
||||||
if ($useStaticLoader) {
|
if ($useStaticLoader) {
|
||||||
$includeFiles = Composer\Autoload\ComposerStaticInit0fb64a24b8fcf6c274d9f346ead546e5::$files;
|
$includeFiles = Composer\Autoload\ComposerStaticInitbf3d7bafba7856774655ae55ece6c5ec::$files;
|
||||||
} else {
|
} else {
|
||||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||||
}
|
}
|
||||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||||
composerRequire0fb64a24b8fcf6c274d9f346ead546e5($fileIdentifier, $file);
|
composerRequirebf3d7bafba7856774655ae55ece6c5ec($fileIdentifier, $file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function composerRequire0fb64a24b8fcf6c274d9f346ead546e5($fileIdentifier, $file)
|
function composerRequirebf3d7bafba7856774655ae55ece6c5ec($fileIdentifier, $file)
|
||||||
{
|
{
|
||||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||||
require $file;
|
require $file;
|
||||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
namespace Composer\Autoload;
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
class ComposerStaticInit0fb64a24b8fcf6c274d9f346ead546e5
|
class ComposerStaticInitbf3d7bafba7856774655ae55ece6c5ec
|
||||||
{
|
{
|
||||||
public static $files = array (
|
public static $files = array (
|
||||||
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
||||||
@ -347,9 +347,9 @@ class ComposerStaticInit0fb64a24b8fcf6c274d9f346ead546e5
|
|||||||
public static function getInitializer(ClassLoader $loader)
|
public static function getInitializer(ClassLoader $loader)
|
||||||
{
|
{
|
||||||
return \Closure::bind(function () use ($loader) {
|
return \Closure::bind(function () use ($loader) {
|
||||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0fb64a24b8fcf6c274d9f346ead546e5::$prefixLengthsPsr4;
|
$loader->prefixLengthsPsr4 = ComposerStaticInitbf3d7bafba7856774655ae55ece6c5ec::$prefixLengthsPsr4;
|
||||||
$loader->prefixDirsPsr4 = ComposerStaticInit0fb64a24b8fcf6c274d9f346ead546e5::$prefixDirsPsr4;
|
$loader->prefixDirsPsr4 = ComposerStaticInitbf3d7bafba7856774655ae55ece6c5ec::$prefixDirsPsr4;
|
||||||
$loader->classMap = ComposerStaticInit0fb64a24b8fcf6c274d9f346ead546e5::$classMap;
|
$loader->classMap = ComposerStaticInitbf3d7bafba7856774655ae55ece6c5ec::$classMap;
|
||||||
|
|
||||||
}, null, ClassLoader::class);
|
}, null, ClassLoader::class);
|
||||||
}
|
}
|
||||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -502,12 +502,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||||
"reference": "24bcdb7c64369f75501241317b8f5c980d074aad"
|
"reference": "9c9b21c523851afd100c4122d57940eedc3d1451"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/24bcdb7c64369f75501241317b8f5c980d074aad",
|
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/9c9b21c523851afd100c4122d57940eedc3d1451",
|
||||||
"reference": "24bcdb7c64369f75501241317b8f5c980d074aad",
|
"reference": "9c9b21c523851afd100c4122d57940eedc3d1451",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -526,7 +526,7 @@
|
|||||||
"qiniu/php-sdk": "^7.2",
|
"qiniu/php-sdk": "^7.2",
|
||||||
"topthink/framework": "5.1.*"
|
"topthink/framework": "5.1.*"
|
||||||
},
|
},
|
||||||
"time": "2019-08-01T01:56:59+00:00",
|
"time": "2019-08-02T08:24:02+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -62,12 +62,14 @@ class Data
|
|||||||
*/
|
*/
|
||||||
public static function batchSave($dbQuery, $data, $key = 'id', $where = [])
|
public static function batchSave($dbQuery, $data, $key = 'id', $where = [])
|
||||||
{
|
{
|
||||||
list($case, $_data) = [[], []];
|
list($case, $input) = [[], []];
|
||||||
foreach ($data as $row) foreach ($row as $k => $v) $case[$k][] = "WHEN '{$row[$key]}' THEN '{$v}'";
|
foreach ($data as $row) foreach ($row as $key => $value) {
|
||||||
|
$case[$key][] = "WHEN '{$row[$key]}' THEN '{$value}'";
|
||||||
|
}
|
||||||
if (isset($case[$key])) unset($case[$key]);
|
if (isset($case[$key])) unset($case[$key]);
|
||||||
$db = is_string($dbQuery) ? Db::name($dbQuery) : $dbQuery;
|
$db = is_string($dbQuery) ? Db::name($dbQuery) : $dbQuery;
|
||||||
foreach ($case as $k => $v) $_data[$k] = $db->raw("CASE `{$key}` " . join(' ', $v) . ' END');
|
foreach ($case as $key => $value) $input[$key] = $db->raw("CASE `{$key}` " . join(' ', $value) . ' END');
|
||||||
return $db->whereIn($key, array_unique(array_column($data, $key)))->where($where)->update($_data) !== false;
|
return $db->whereIn($key, array_unique(array_column($data, $key)))->where($where)->update($input) !== false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user