[更新]Composer更新及发布

This commit is contained in:
Anyon 2017-07-10 10:53:56 +08:00
parent d547d5401f
commit b0c5be2f35
5 changed files with 20 additions and 18 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 ComposerAutoloaderInit7a89897f38ba6b2cbfe9f97509e03de7::getLoader(); return ComposerAutoloaderInit3690105f7719931c5f8f2ffabcf1c6ab::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInit7a89897f38ba6b2cbfe9f97509e03de7 class ComposerAutoloaderInit3690105f7719931c5f8f2ffabcf1c6ab
{ {
private static $loader; private static $loader;
@ -19,15 +19,15 @@ class ComposerAutoloaderInit7a89897f38ba6b2cbfe9f97509e03de7
return self::$loader; return self::$loader;
} }
spl_autoload_register(array('ComposerAutoloaderInit7a89897f38ba6b2cbfe9f97509e03de7', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInit3690105f7719931c5f8f2ffabcf1c6ab', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(); self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit7a89897f38ba6b2cbfe9f97509e03de7', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInit3690105f7719931c5f8f2ffabcf1c6ab', '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\ComposerStaticInit7a89897f38ba6b2cbfe9f97509e03de7::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInit3690105f7719931c5f8f2ffabcf1c6ab::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 ComposerAutoloaderInit7a89897f38ba6b2cbfe9f97509e03de7
$loader->register(true); $loader->register(true);
if ($useStaticLoader) { if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit7a89897f38ba6b2cbfe9f97509e03de7::$files; $includeFiles = Composer\Autoload\ComposerStaticInit3690105f7719931c5f8f2ffabcf1c6ab::$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) {
composerRequire7a89897f38ba6b2cbfe9f97509e03de7($fileIdentifier, $file); composerRequire3690105f7719931c5f8f2ffabcf1c6ab($fileIdentifier, $file);
} }
return $loader; return $loader;
} }
} }
function composerRequire7a89897f38ba6b2cbfe9f97509e03de7($fileIdentifier, $file) function composerRequire3690105f7719931c5f8f2ffabcf1c6ab($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 ComposerStaticInit7a89897f38ba6b2cbfe9f97509e03de7 class ComposerStaticInit3690105f7719931c5f8f2ffabcf1c6ab
{ {
public static $files = array ( public static $files = array (
'9b552a3cc426e3287cc811caefa3cf53' => __DIR__ . '/..' . '/topthink/think-helper/src/helper.php', '9b552a3cc426e3287cc811caefa3cf53' => __DIR__ . '/..' . '/topthink/think-helper/src/helper.php',
@ -383,9 +383,9 @@ class ComposerStaticInit7a89897f38ba6b2cbfe9f97509e03de7
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 = ComposerStaticInit7a89897f38ba6b2cbfe9f97509e03de7::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInit3690105f7719931c5f8f2ffabcf1c6ab::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7a89897f38ba6b2cbfe9f97509e03de7::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit3690105f7719931c5f8f2ffabcf1c6ab::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit7a89897f38ba6b2cbfe9f97509e03de7::$classMap; $loader->classMap = ComposerStaticInit3690105f7719931c5f8f2ffabcf1c6ab::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }

View File

@ -49,18 +49,18 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/zoujingli/wechat-php-sdk.git", "url": "https://github.com/zoujingli/wechat-php-sdk.git",
"reference": "caeb3d93a4c7ad78c6aaf7bcdbb0086f0e1f3ae8" "reference": "4431e3a9684dde09c0a1642ca1d83b62a2af6b3e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://files.phpcomposer.com/files/zoujingli/wechat-php-sdk/caeb3d93a4c7ad78c6aaf7bcdbb0086f0e1f3ae8.zip", "url": "https://files.phpcomposer.com/files/zoujingli/wechat-php-sdk/4431e3a9684dde09c0a1642ca1d83b62a2af6b3e.zip",
"reference": "caeb3d93a4c7ad78c6aaf7bcdbb0086f0e1f3ae8", "reference": "4431e3a9684dde09c0a1642ca1d83b62a2af6b3e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3"
}, },
"time": "2017-05-10T07:41:59+00:00", "time": "2017-07-10T02:49:05+00:00",
"type": "project", "type": "project",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {

View File

@ -202,10 +202,11 @@ class WechatPay {
* @param string $goods_tag 商品标记,代金券或立减优惠功能的参数 * @param string $goods_tag 商品标记,代金券或立减优惠功能的参数
* @return bool|string * @return bool|string
*/ */
public function getPrepayId($openid, $body, $out_trade_no, $total_fee, $notify_url, $trade_type = "JSAPI", $goods_tag = null) { public function getPrepayId($openid, $body, $out_trade_no, $total_fee, $notify_url, $trade_type = "JSAPI", $goods_tag = null, $fee_type = 'CNY') {
$postdata = array( $postdata = array(
"body" => $body, "body" => $body,
"out_trade_no" => $out_trade_no, "out_trade_no" => $out_trade_no,
"fee_type" => $fee_type,
"total_fee" => $total_fee, "total_fee" => $total_fee,
"notify_url" => $notify_url, "notify_url" => $notify_url,
"trade_type" => $trade_type, "trade_type" => $trade_type,
@ -230,10 +231,11 @@ class WechatPay {
* @param string $goods_tag 商品标记,代金券或立减优惠功能的参数 * @param string $goods_tag 商品标记,代金券或立减优惠功能的参数
* @return bool|string * @return bool|string
*/ */
public function getQrcPrepayId($openid, $body, $out_trade_no, $total_fee, $notify_url, $goods_tag = null) { public function getQrcPrepayId($openid, $body, $out_trade_no, $total_fee, $notify_url, $goods_tag = null, $fee_type = 'CNY') {
$postdata = array( $postdata = array(
"body" => $body, "body" => $body,
"out_trade_no" => $out_trade_no, "out_trade_no" => $out_trade_no,
"fee_type" => $fee_type,
"total_fee" => $total_fee, "total_fee" => $total_fee,
"notify_url" => $notify_url, "notify_url" => $notify_url,
"trade_type" => 'NATIVE', "trade_type" => 'NATIVE',