diff --git a/vendor/autoload.php b/vendor/autoload.php index 83d93fac6..1a1d53110 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit9497ee4ec47f887a8df8ef0872aa0e54::getLoader(); +return ComposerAutoloaderInit90877748d7744ab95f84f0842f77a41e::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 4240f520b..70dc3b69d 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit9497ee4ec47f887a8df8ef0872aa0e54 +class ComposerAutoloaderInit90877748d7744ab95f84f0842f77a41e { private static $loader; @@ -19,15 +19,15 @@ class ComposerAutoloaderInit9497ee4ec47f887a8df8ef0872aa0e54 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit9497ee4ec47f887a8df8ef0872aa0e54', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit90877748d7744ab95f84f0842f77a41e', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit9497ee4ec47f887a8df8ef0872aa0e54', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit90877748d7744ab95f84f0842f77a41e', '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\ComposerStaticInit9497ee4ec47f887a8df8ef0872aa0e54::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit90877748d7744ab95f84f0842f77a41e::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +48,19 @@ class ComposerAutoloaderInit9497ee4ec47f887a8df8ef0872aa0e54 $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit9497ee4ec47f887a8df8ef0872aa0e54::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit90877748d7744ab95f84f0842f77a41e::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire9497ee4ec47f887a8df8ef0872aa0e54($fileIdentifier, $file); + composerRequire90877748d7744ab95f84f0842f77a41e($fileIdentifier, $file); } return $loader; } } -function composerRequire9497ee4ec47f887a8df8ef0872aa0e54($fileIdentifier, $file) +function composerRequire90877748d7744ab95f84f0842f77a41e($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 64d2143c4..a439b87a1 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit9497ee4ec47f887a8df8ef0872aa0e54 +class ComposerStaticInit90877748d7744ab95f84f0842f77a41e { public static $files = array ( '841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php', @@ -288,9 +288,9 @@ class ComposerStaticInit9497ee4ec47f887a8df8ef0872aa0e54 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit9497ee4ec47f887a8df8ef0872aa0e54::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit9497ee4ec47f887a8df8ef0872aa0e54::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit9497ee4ec47f887a8df8ef0872aa0e54::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit90877748d7744ab95f84f0842f77a41e::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit90877748d7744ab95f84f0842f77a41e::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit90877748d7744ab95f84f0842f77a41e::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 965354454..382ff4129 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -177,17 +177,17 @@ }, { "name": "symfony/options-resolver", - "version": "v3.4.36", - "version_normalized": "3.4.36.0", + "version": "v3.4.38", + "version_normalized": "3.4.38.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "b224d20be60e6f7b55cd66914379a13a0b28651a" + "reference": "730ef56164ed6c9356c159e9f5ff2b84d753b9ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/b224d20be60e6f7b55cd66914379a13a0b28651a", - "reference": "b224d20be60e6f7b55cd66914379a13a0b28651a", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/730ef56164ed6c9356c159e9f5ff2b84d753b9ed", + "reference": "730ef56164ed6c9356c159e9f5ff2b84d753b9ed", "shasum": "", "mirrors": [ { @@ -199,7 +199,7 @@ "require": { "php": "^5.5.9|>=7.0.8" }, - "time": "2019-10-26T11:02:01+00:00", + "time": "2020-01-01T11:03:25+00:00", "type": "library", "extra": { "branch-alias": { @@ -443,17 +443,17 @@ }, { "name": "zoujingli/wechat-developer", - "version": "v1.2.16", - "version_normalized": "1.2.16.0", + "version": "v1.2.17", + "version_normalized": "1.2.17.0", "source": { "type": "git", "url": "https://github.com/zoujingli/WeChatDeveloper.git", - "reference": "01fa1479e8c4d7a0875de96787a2bcaeacc755e9" + "reference": "98f6e82311a364220a677cdfd56dc9f97851ab24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/01fa1479e8c4d7a0875de96787a2bcaeacc755e9", - "reference": "01fa1479e8c4d7a0875de96787a2bcaeacc755e9", + "url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/98f6e82311a364220a677cdfd56dc9f97851ab24", + "reference": "98f6e82311a364220a677cdfd56dc9f97851ab24", "shasum": "", "mirrors": [ { @@ -471,7 +471,7 @@ "ext-simplexml": "*", "php": ">=5.4" }, - "time": "2020-01-04T08:51:50+00:00", + "time": "2020-03-03T01:38:07+00:00", "type": "library", "installation-source": "dist", "autoload": { diff --git a/vendor/symfony/options-resolver/LICENSE b/vendor/symfony/options-resolver/LICENSE index a677f4376..9e936ec04 100644 --- a/vendor/symfony/options-resolver/LICENSE +++ b/vendor/symfony/options-resolver/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2004-2019 Fabien Potencier +Copyright (c) 2004-2020 Fabien Potencier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/vendor/zoujingli/wechat-developer/AliPay/Transfer.php b/vendor/zoujingli/wechat-developer/AliPay/Transfer.php index bb745cf4b..46e9f21fb 100644 --- a/vendor/zoujingli/wechat-developer/AliPay/Transfer.php +++ b/vendor/zoujingli/wechat-developer/AliPay/Transfer.php @@ -25,17 +25,7 @@ class Transfer extends BasicAliPay { /** - * Transfer constructor. - * @param array $options - */ - public function __construct(array $options) - { - parent::__construct($options); - $this->options->set('method', 'alipay.fund.trans.toaccount.transfer'); - } - - /** - * 创建数据操作 + * 旧版 向指定支付宝账户转账 * @param array $options * @return mixed * @throws \WeChat\Exceptions\InvalidResponseException @@ -43,6 +33,47 @@ class Transfer extends BasicAliPay */ public function apply($options) { + $this->options->set('method', 'alipay.fund.trans.toaccount.transfer'); + return $this->getResult($options); + } + + /** + * 新版 向指定支付宝账户转账 + * @param array $options + * @return array|bool + * @throws \WeChat\Exceptions\InvalidResponseException + * @throws \WeChat\Exceptions\LocalCacheException + */ + public function create($options = []) + { + $this->options->set('method', 'alipay.fund.trans.uni.transfer'); + return $this->getResult($options); + } + + /** + * 新版 转账业务单据查询接口 + * @param array $options + * @return array|bool + * @throws \WeChat\Exceptions\InvalidResponseException + * @throws \WeChat\Exceptions\LocalCacheException + */ + public function queryResult($options = []) + { + $this->options->set('method', 'alipay.fund.trans.common.query'); + return $this->getResult($options); + + } + + /** + * 新版 支付宝资金账户资产查询接口 + * @param array $options + * @return array|bool + * @throws \WeChat\Exceptions\InvalidResponseException + * @throws \WeChat\Exceptions\LocalCacheException + */ + public function queryAccount($options = []) + { + $this->options->set('method', 'alipay.fund.account.query'); return $this->getResult($options); } } \ No newline at end of file diff --git a/vendor/zoujingli/wechat-developer/We.php b/vendor/zoujingli/wechat-developer/We.php index f4bb06b36..a81ff1a25 100644 --- a/vendor/zoujingli/wechat-developer/We.php +++ b/vendor/zoujingli/wechat-developer/We.php @@ -81,7 +81,7 @@ class We * 定义当前版本 * @var string */ - const VERSION = '1.2.13'; + const VERSION = '1.2.17'; /** * 静态配置 diff --git a/vendor/zoujingli/wechat-developer/_test/alipay-transfer-account.php b/vendor/zoujingli/wechat-developer/_test/alipay-transfer-account.php new file mode 100644 index 000000000..1d2b289e4 --- /dev/null +++ b/vendor/zoujingli/wechat-developer/_test/alipay-transfer-account.php @@ -0,0 +1,37 @@ +queryAccount([ + 'alipay_user_id' => $config['appid'], // 订单号 + 'account_scene_code' => 'SCENE_000_000_000', + ]); + echo '
';
+    var_export($result);
+} catch (Exception $e) {
+    echo $e->getMessage();
+}
+
diff --git a/vendor/zoujingli/wechat-developer/_test/alipay-transfer-create.php b/vendor/zoujingli/wechat-developer/_test/alipay-transfer-create.php
new file mode 100644
index 000000000..39d0fc429
--- /dev/null
+++ b/vendor/zoujingli/wechat-developer/_test/alipay-transfer-create.php
@@ -0,0 +1,44 @@
+create([
+        'out_biz_no'   => time(), // 订单号
+        'trans_amount' => '10', // 转账金额
+        'product_code' => 'TRANS_ACCOUNT_NO_PWD',
+        'biz_scene'    => 'DIRECT_TRANSFER',
+        'payee_info'   => [
+            'identity'      => 'zoujingli@qq.com',
+            'identity_type' => 'ALIPAY_LOGON_ID',
+            'name'          => '邹景立',
+        ],
+    ]);
+    echo '
';
+    var_export($result);
+} catch (Exception $e) {
+    echo $e->getMessage();
+}
+
diff --git a/vendor/zoujingli/wechat-developer/_test/alipay-transfer-query.php b/vendor/zoujingli/wechat-developer/_test/alipay-transfer-query.php
new file mode 100644
index 000000000..7e7d99fea
--- /dev/null
+++ b/vendor/zoujingli/wechat-developer/_test/alipay-transfer-query.php
@@ -0,0 +1,38 @@
+queryResult([
+        'out_biz_no'   => '201808080001', // 订单号
+        'product_code' => 'TRANS_ACCOUNT_NO_PWD',
+        'biz_scene'    => 'DIRECT_TRANSFER',
+    ]);
+    echo '
';
+    var_export($result);
+} catch (Exception $e) {
+    echo $e->getMessage();
+}
+