[更新]ComposerUpdate

This commit is contained in:
Anyon 2018-05-09 15:16:54 +08:00
parent 2a1aff4a8f
commit 1666d59e57
5 changed files with 19 additions and 19 deletions

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php'; require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit718a8d9567dd1edbcfc83169e7de8f66::getLoader(); return ComposerAutoloaderInit7ecf5ded1a6830a1c375fe7293886da9::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInit718a8d9567dd1edbcfc83169e7de8f66 class ComposerAutoloaderInit7ecf5ded1a6830a1c375fe7293886da9
{ {
private static $loader; private static $loader;
@ -19,15 +19,15 @@ class ComposerAutoloaderInit718a8d9567dd1edbcfc83169e7de8f66
return self::$loader; return self::$loader;
} }
spl_autoload_register(array('ComposerAutoloaderInit718a8d9567dd1edbcfc83169e7de8f66', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInit7ecf5ded1a6830a1c375fe7293886da9', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(); self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit718a8d9567dd1edbcfc83169e7de8f66', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInit7ecf5ded1a6830a1c375fe7293886da9', '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\ComposerStaticInit718a8d9567dd1edbcfc83169e7de8f66::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInit7ecf5ded1a6830a1c375fe7293886da9::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 ComposerAutoloaderInit718a8d9567dd1edbcfc83169e7de8f66
$loader->register(true); $loader->register(true);
if ($useStaticLoader) { if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit718a8d9567dd1edbcfc83169e7de8f66::$files; $includeFiles = Composer\Autoload\ComposerStaticInit7ecf5ded1a6830a1c375fe7293886da9::$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) {
composerRequire718a8d9567dd1edbcfc83169e7de8f66($fileIdentifier, $file); composerRequire7ecf5ded1a6830a1c375fe7293886da9($fileIdentifier, $file);
} }
return $loader; return $loader;
} }
} }
function composerRequire718a8d9567dd1edbcfc83169e7de8f66($fileIdentifier, $file) function composerRequire7ecf5ded1a6830a1c375fe7293886da9($fileIdentifier, $file)
{ {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file; require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInit718a8d9567dd1edbcfc83169e7de8f66 class ComposerStaticInit7ecf5ded1a6830a1c375fe7293886da9
{ {
public static $files = array ( public static $files = array (
'1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php', '1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php',
@ -275,9 +275,9 @@ class ComposerStaticInit718a8d9567dd1edbcfc83169e7de8f66
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 = ComposerStaticInit718a8d9567dd1edbcfc83169e7de8f66::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInit7ecf5ded1a6830a1c375fe7293886da9::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit718a8d9567dd1edbcfc83169e7de8f66::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit7ecf5ded1a6830a1c375fe7293886da9::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit718a8d9567dd1edbcfc83169e7de8f66::$classMap; $loader->classMap = ComposerStaticInit7ecf5ded1a6830a1c375fe7293886da9::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }

View File

@ -85,12 +85,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/zoujingli/WeChatDeveloper.git", "url": "https://github.com/zoujingli/WeChatDeveloper.git",
"reference": "011e4608726fa83cb495dfa1f4d4f56c154ada21" "reference": "e72fb2f166ee1a3b4889845cd932a1ab9d2005ee"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://files.phpcomposer.com/files/zoujingli/WeChatDeveloper/011e4608726fa83cb495dfa1f4d4f56c154ada21.zip", "url": "https://files.phpcomposer.com/files/zoujingli/WeChatDeveloper/e72fb2f166ee1a3b4889845cd932a1ab9d2005ee.zip",
"reference": "011e4608726fa83cb495dfa1f4d4f56c154ada21", "reference": "e72fb2f166ee1a3b4889845cd932a1ab9d2005ee",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -98,7 +98,7 @@
"ext-openssl": "*", "ext-openssl": "*",
"php": ">=5.4" "php": ">=5.4"
}, },
"time": "2018-05-09T04:22:21+00:00", "time": "2018-05-09T05:38:00+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {

View File

@ -299,13 +299,13 @@ class Pay
{ {
$option = []; $option = [];
if ($isCert) { if ($isCert) {
$option['ssl_cer'] = $this->config->get('ssl_cer');
$option['ssl_key'] = $this->config->get('ssl_key');
foreach (['ssl_cer', 'ssl_key'] as $key) { foreach (['ssl_cer', 'ssl_key'] as $key) {
if (empty($option[$key])) { if (empty($option[$key]) || !file_exists($option[$key])) {
throw new InvalidArgumentException("Missing Config -- [{$key}]", '0'); throw new InvalidArgumentException("Missing Config -- [{$key}]", '0');
} }
} }
$option['ssl_cer'] = $this->config->get('ssl_cer');
$option['ssl_key'] = $this->config->get('ssl_key');
} }
$params = $this->params->merge($data); $params = $this->params->merge($data);
$needSignType && ($params['sign_type'] = strtoupper($signType)); $needSignType && ($params['sign_type'] = strtoupper($signType));