mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]Composer组件更新
This commit is contained in:
parent
0ad98ba327
commit
787379a9b8
8
composer.lock
generated
8
composer.lock
generated
@ -344,12 +344,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/wechat-php-sdk.git",
|
||||
"reference": "12759d48867aab14e6b66be81a5b5afe223a0476"
|
||||
"reference": "b80720891d847dfd58cd465c44492a36bb2c13ee"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://files.phpcomposer.com/files/zoujingli/wechat-php-sdk/12759d48867aab14e6b66be81a5b5afe223a0476.zip",
|
||||
"reference": "12759d48867aab14e6b66be81a5b5afe223a0476",
|
||||
"url": "https://files.phpcomposer.com/files/zoujingli/wechat-php-sdk/b80720891d847dfd58cd465c44492a36bb2c13ee.zip",
|
||||
"reference": "b80720891d847dfd58cd465c44492a36bb2c13ee",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -370,7 +370,7 @@
|
||||
"keywords": [
|
||||
"wechat-php-sdk"
|
||||
],
|
||||
"time": "2017-02-14 08:30:06"
|
||||
"time": "2017-03-20 03:40:39"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit1e5a1769513e1c16865b6a8da261fa6d::getLoader();
|
||||
return ComposerAutoloaderInit1d73f902df261cf5d17436029a67d17d::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 ComposerAutoloaderInit1e5a1769513e1c16865b6a8da261fa6d
|
||||
class ComposerAutoloaderInit1d73f902df261cf5d17436029a67d17d
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInit1e5a1769513e1c16865b6a8da261fa6d
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1e5a1769513e1c16865b6a8da261fa6d', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1d73f902df261cf5d17436029a67d17d', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1e5a1769513e1c16865b6a8da261fa6d', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1d73f902df261cf5d17436029a67d17d', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
|
||||
if ($useStaticLoader) {
|
||||
require_once __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1e5a1769513e1c16865b6a8da261fa6d::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1d73f902df261cf5d17436029a67d17d::getInitializer($loader));
|
||||
} else {
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInit1e5a1769513e1c16865b6a8da261fa6d
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit1e5a1769513e1c16865b6a8da261fa6d::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit1d73f902df261cf5d17436029a67d17d::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire1e5a1769513e1c16865b6a8da261fa6d($fileIdentifier, $file);
|
||||
composerRequire1d73f902df261cf5d17436029a67d17d($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire1e5a1769513e1c16865b6a8da261fa6d($fileIdentifier, $file)
|
||||
function composerRequire1d73f902df261cf5d17436029a67d17d($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 ComposerStaticInit1e5a1769513e1c16865b6a8da261fa6d
|
||||
class ComposerStaticInit1d73f902df261cf5d17436029a67d17d
|
||||
{
|
||||
public static $files = array (
|
||||
'9b552a3cc426e3287cc811caefa3cf53' => __DIR__ . '/..' . '/topthink/think-helper/src/helper.php',
|
||||
@ -273,9 +273,9 @@ class ComposerStaticInit1e5a1769513e1c16865b6a8da261fa6d
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1e5a1769513e1c16865b6a8da261fa6d::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1e5a1769513e1c16865b6a8da261fa6d::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1e5a1769513e1c16865b6a8da261fa6d::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1d73f902df261cf5d17436029a67d17d::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1d73f902df261cf5d17436029a67d17d::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1d73f902df261cf5d17436029a67d17d::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -88,18 +88,18 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/wechat-php-sdk.git",
|
||||
"reference": "12759d48867aab14e6b66be81a5b5afe223a0476"
|
||||
"reference": "b80720891d847dfd58cd465c44492a36bb2c13ee"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://files.phpcomposer.com/files/zoujingli/wechat-php-sdk/12759d48867aab14e6b66be81a5b5afe223a0476.zip",
|
||||
"reference": "12759d48867aab14e6b66be81a5b5afe223a0476",
|
||||
"url": "https://files.phpcomposer.com/files/zoujingli/wechat-php-sdk/b80720891d847dfd58cd465c44492a36bb2c13ee.zip",
|
||||
"reference": "b80720891d847dfd58cd465c44492a36bb2c13ee",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"time": "2017-02-14 08:30:06",
|
||||
"time": "2017-03-20 03:40:39",
|
||||
"type": "project",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
|
@ -17,6 +17,8 @@ class WechatUser extends Common {
|
||||
const USER_GET_URL = '/user/get?';
|
||||
/* 获取粉丝信息 */
|
||||
const USER_INFO_URL = '/user/info?';
|
||||
/* 批量获取粉丝信息 */
|
||||
const USER_BATCH_INFO_URL = '/user/info/batchget';
|
||||
/* 更新粉丝标注 */
|
||||
const USER_UPDATEREMARK_URL = '/user/info/updateremark?';
|
||||
|
||||
@ -104,6 +106,33 @@ class WechatUser extends Common {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量获取用户基本信息
|
||||
* @param array $openids 用户oepnid列表(最多支持100个openid)
|
||||
* @param string $lang 指定返回语言
|
||||
* @return bool|mixed
|
||||
*/
|
||||
public function getUserBatchInfo(array $openids, $lang = 'zh-CN') {
|
||||
if (!$this->access_token && !$this->getAccessToken()) {
|
||||
return false;
|
||||
}
|
||||
$data = array();
|
||||
foreach ($openids as $openid) {
|
||||
$data[] = array('openid' => $openid, 'lang' => $lang);
|
||||
}
|
||||
$result = Tools::httpPost(self::API_URL_PREFIX . self::USER_BATCH_INFO_URL . "access_token={$this->access_token}", $data);
|
||||
if ($result) {
|
||||
$json = json_decode($result, true);
|
||||
if (isset($json['errcode']) && !isset($json['user_info_list'])) {
|
||||
$this->errCode = $json['errcode'];
|
||||
$this->errMsg = $json['errmsg'];
|
||||
return $this->checkRetry(__FUNCTION__, func_get_args());
|
||||
}
|
||||
return $json['user_info_list'];
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置粉丝备注名
|
||||
* @param string $openid
|
||||
|
Loading…
x
Reference in New Issue
Block a user