mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]ComposerUpdate
This commit is contained in:
parent
e2397096a8
commit
cd90943ac5
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitde40dbadcc666977486255074dc624e9::getLoader();
|
||||
return ComposerAutoloaderInite0d2dad2bed8969160696ec97729e10a::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 ComposerAutoloaderInitde40dbadcc666977486255074dc624e9
|
||||
class ComposerAutoloaderInite0d2dad2bed8969160696ec97729e10a
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInitde40dbadcc666977486255074dc624e9
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitde40dbadcc666977486255074dc624e9', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInite0d2dad2bed8969160696ec97729e10a', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitde40dbadcc666977486255074dc624e9', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInite0d2dad2bed8969160696ec97729e10a', '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\ComposerStaticInitde40dbadcc666977486255074dc624e9::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInite0d2dad2bed8969160696ec97729e10a::getInitializer($loader));
|
||||
} else {
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInitde40dbadcc666977486255074dc624e9
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitde40dbadcc666977486255074dc624e9::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInite0d2dad2bed8969160696ec97729e10a::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirede40dbadcc666977486255074dc624e9($fileIdentifier, $file);
|
||||
composerRequiree0d2dad2bed8969160696ec97729e10a($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequirede40dbadcc666977486255074dc624e9($fileIdentifier, $file)
|
||||
function composerRequiree0d2dad2bed8969160696ec97729e10a($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 ComposerStaticInitde40dbadcc666977486255074dc624e9
|
||||
class ComposerStaticInite0d2dad2bed8969160696ec97729e10a
|
||||
{
|
||||
public static $files = array (
|
||||
'1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php',
|
||||
@ -287,9 +287,9 @@ class ComposerStaticInitde40dbadcc666977486255074dc624e9
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitde40dbadcc666977486255074dc624e9::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitde40dbadcc666977486255074dc624e9::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitde40dbadcc666977486255074dc624e9::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInite0d2dad2bed8969160696ec97729e10a::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInite0d2dad2bed8969160696ec97729e10a::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInite0d2dad2bed8969160696ec97729e10a::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -133,12 +133,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/WeOpenDeveloper.git",
|
||||
"reference": "21273dc11c4fb3de4ab07d74a696bf0e4661cea3"
|
||||
"reference": "d5fb9d2b307251c7faedcb61758119bcb5b836d0"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://files.phpcomposer.com/files/zoujingli/WeOpenDeveloper/21273dc11c4fb3de4ab07d74a696bf0e4661cea3.zip",
|
||||
"reference": "21273dc11c4fb3de4ab07d74a696bf0e4661cea3",
|
||||
"url": "https://files.phpcomposer.com/files/zoujingli/WeOpenDeveloper/d5fb9d2b307251c7faedcb61758119bcb5b836d0.zip",
|
||||
"reference": "d5fb9d2b307251c7faedcb61758119bcb5b836d0",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -147,7 +147,7 @@
|
||||
"php": ">=5.4",
|
||||
"zoujingli/wechat-developer": "^1.0"
|
||||
},
|
||||
"time": "2018-05-23T07:08:07+00:00",
|
||||
"time": "2018-05-23T07:29:30+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
|
@ -127,6 +127,27 @@ class Service
|
||||
return $result['authorizer_info'];
|
||||
}
|
||||
|
||||
/**
|
||||
* 确认接受公众号将某权限集高级权限的授权
|
||||
* @param string $authorizerAppid 授权公众号或小程序的appid
|
||||
* @param string $funcscopeCategoryId 权限集ID
|
||||
* @param string $confirmValue 是否确认(1.确认授权, 2.取消确认)
|
||||
* @return array
|
||||
* @throws InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function setAuthorization($authorizerAppid, $funcscopeCategoryId, $confirmValue)
|
||||
{
|
||||
$componentAccessToken = $this->getComponentAccessToken();
|
||||
$url = "https://api.weixin.qq.com/cgi-bin/component/api_confirm_authorization?component_access_token={$componentAccessToken}";
|
||||
return $this->httpPostForJson($url, [
|
||||
'confirm_value' => $confirmValue,
|
||||
'authorizer_appid' => $authorizerAppid,
|
||||
'funcscope_category_id' => $funcscopeCategoryId,
|
||||
'component_appid' => $this->config->get('component_appid'),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置授权方的选项信息
|
||||
* @param string $authorizerAppid 授权公众号或小程序的appid
|
||||
@ -140,13 +161,31 @@ class Service
|
||||
{
|
||||
$componentAccessToken = $this->getComponentAccessToken();
|
||||
$url = "https://api.weixin.qq.com/cgi-bin/component/api_set_authorizer_option?component_access_token={$componentAccessToken}";
|
||||
$result = $this->httpPostForJson($url, [
|
||||
return $this->httpPostForJson($url, [
|
||||
'option_name' => $optionName,
|
||||
'option_value' => $optionValue,
|
||||
'authorizer_appid' => $authorizerAppid,
|
||||
'component_appid' => $this->config->get('component_appid'),
|
||||
]);
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取授权方的选项设置信息
|
||||
* @param string $authorizerAppid 授权公众号或小程序的appid
|
||||
* @param string $optionName 选项名称
|
||||
* @return array
|
||||
* @throws InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function getAuthorizerOption($authorizerAppid, $optionName)
|
||||
{
|
||||
$componentAccessToken = $this->getComponentAccessToken();
|
||||
$url = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_option?component_access_token={$componentAccessToken}";
|
||||
return $this->httpPostForJson($url, [
|
||||
'option_name' => $optionName,
|
||||
'authorizer_appid' => $authorizerAppid,
|
||||
'component_appid' => $this->config->get('component_appid'),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user