mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]ComposerUpdate
This commit is contained in:
parent
bd87dfc038
commit
e011566f09
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit4fa8eddf7e9cd8fde7f5828e9f4f1501::getLoader();
|
||||
return ComposerAutoloaderInit5e7dfe06a0c94be3739014b646ee31c6::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 ComposerAutoloaderInit4fa8eddf7e9cd8fde7f5828e9f4f1501
|
||||
class ComposerAutoloaderInit5e7dfe06a0c94be3739014b646ee31c6
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInit4fa8eddf7e9cd8fde7f5828e9f4f1501
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit4fa8eddf7e9cd8fde7f5828e9f4f1501', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit5e7dfe06a0c94be3739014b646ee31c6', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit4fa8eddf7e9cd8fde7f5828e9f4f1501', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit5e7dfe06a0c94be3739014b646ee31c6', '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\ComposerStaticInit4fa8eddf7e9cd8fde7f5828e9f4f1501::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit5e7dfe06a0c94be3739014b646ee31c6::getInitializer($loader));
|
||||
} else {
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInit4fa8eddf7e9cd8fde7f5828e9f4f1501
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit4fa8eddf7e9cd8fde7f5828e9f4f1501::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit5e7dfe06a0c94be3739014b646ee31c6::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire4fa8eddf7e9cd8fde7f5828e9f4f1501($fileIdentifier, $file);
|
||||
composerRequire5e7dfe06a0c94be3739014b646ee31c6($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire4fa8eddf7e9cd8fde7f5828e9f4f1501($fileIdentifier, $file)
|
||||
function composerRequire5e7dfe06a0c94be3739014b646ee31c6($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 ComposerStaticInit4fa8eddf7e9cd8fde7f5828e9f4f1501
|
||||
class ComposerStaticInit5e7dfe06a0c94be3739014b646ee31c6
|
||||
{
|
||||
public static $files = array (
|
||||
'1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php',
|
||||
@ -302,9 +302,9 @@ class ComposerStaticInit4fa8eddf7e9cd8fde7f5828e9f4f1501
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit4fa8eddf7e9cd8fde7f5828e9f4f1501::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit4fa8eddf7e9cd8fde7f5828e9f4f1501::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit4fa8eddf7e9cd8fde7f5828e9f4f1501::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit5e7dfe06a0c94be3739014b646ee31c6::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit5e7dfe06a0c94be3739014b646ee31c6::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit5e7dfe06a0c94be3739014b646ee31c6::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
12
vendor/composer/installed.json
vendored
12
vendor/composer/installed.json
vendored
@ -80,17 +80,17 @@
|
||||
},
|
||||
{
|
||||
"name": "zoujingli/wechat-developer",
|
||||
"version": "v1.1.10",
|
||||
"version_normalized": "1.1.10.0",
|
||||
"version": "v1.1.11",
|
||||
"version_normalized": "1.1.11.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/WeChatDeveloper.git",
|
||||
"reference": "fd179277a64b5435140617ef2fa3a2420d55795e"
|
||||
"reference": "ff36d0b26848eef5aa9d507eae44d7c8dafb04eb"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/fd179277a64b5435140617ef2fa3a2420d55795e",
|
||||
"reference": "fd179277a64b5435140617ef2fa3a2420d55795e",
|
||||
"url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/ff36d0b26848eef5aa9d507eae44d7c8dafb04eb",
|
||||
"reference": "ff36d0b26848eef5aa9d507eae44d7c8dafb04eb",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -98,7 +98,7 @@
|
||||
"ext-openssl": "*",
|
||||
"php": ">=5.4"
|
||||
},
|
||||
"time": "2018-05-27T14:38:28+00:00",
|
||||
"time": "2018-05-29T02:10:45+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
|
2
vendor/zoujingli/wechat-developer/We.php
vendored
2
vendor/zoujingli/wechat-developer/We.php
vendored
@ -100,7 +100,7 @@ class We
|
||||
$class = 'WePay\\' . substr($name, 5);
|
||||
}
|
||||
if (!empty($class) && class_exists($class)) {
|
||||
$option = array_pop($arguments);
|
||||
$option = array_shift($arguments);
|
||||
$config = is_array($option) ? $option : self::$config->get();
|
||||
return new $class($config);
|
||||
}
|
||||
|
@ -388,6 +388,65 @@ class Card extends BasicWeChat
|
||||
return $this->httpPostForJson($url, $data);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 激活会员卡
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws Exceptions\InvalidResponseException
|
||||
* @throws Exceptions\LocalCacheException
|
||||
*/
|
||||
public function activateMemberCard(array $data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/card/membercard/activate?access_token=ACCESS_TOKEN';
|
||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||
return $this->httpPostForJson($url, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置开卡字段接口
|
||||
* 用户激活时需要填写的选项
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws Exceptions\InvalidResponseException
|
||||
* @throws Exceptions\LocalCacheException
|
||||
*/
|
||||
public function setActivateMemberCardUser(array $data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/card/membercard/activateuserform/set?access_token=ACCESS_TOKEN';
|
||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||
return $this->httpPostForJson($url, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户提交资料
|
||||
* 根据activate_ticket获取到用户填写的信息
|
||||
* @param string $activate_ticket
|
||||
* @return array
|
||||
* @throws Exceptions\InvalidResponseException
|
||||
* @throws Exceptions\LocalCacheException
|
||||
*/
|
||||
public function getActivateMemberCardTempinfo($activate_ticket)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/card/membercard/activatetempinfo/get?access_token=ACCESS_TOKEN';
|
||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||
return $this->httpPostForJson($url, ['activate_ticket' => $activate_ticket]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新会员信息
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws Exceptions\InvalidResponseException
|
||||
* @throws Exceptions\LocalCacheException
|
||||
*/
|
||||
public function updateMemberCardUser(array $data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/card/membercard/updateuser?access_token=ACCESS_TOKEN';
|
||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||
return $this->httpPostForJson($url, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 拉取会员卡概况数据接口
|
||||
* @param string $begin_date 查询数据的起始时间
|
||||
@ -612,5 +671,4 @@ class Card extends BasicWeChat
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user