[更新]ComposerUpdate

This commit is contained in:
Anyon 2018-03-26 14:23:16 +08:00
parent eb3bb08ccf
commit 5bd78024d7
9 changed files with 39 additions and 27 deletions

View File

@ -183,7 +183,7 @@ class Fans extends BasicAdmin
TagsService::sync();
LogService::write('微信管理', '同步全部微信粉丝成功');
} catch (\Exception $e) {
$this->error('同步粉丝记录失败,请稍候再试!');
$this->error('同步粉丝记录失败,请稍候再试!' . $e->getMessage());
}
$this->success('同步获取所有粉丝成功!', '');
}

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitaf24f5f94ed079e6264991343eebb4cc::getLoader();
return ComposerAutoloaderInit82478bf98a2bb4bf864d022f0191d40d::getLoader();

View File

@ -149,6 +149,11 @@ return array(
'app\\admin\\controller\\Node' => $baseDir . '/application/admin/controller/Node.php',
'app\\admin\\controller\\Plugs' => $baseDir . '/application/admin/controller/Plugs.php',
'app\\admin\\controller\\User' => $baseDir . '/application/admin/controller/User.php',
'app\\goods\\controller\\Brand' => $baseDir . '/application/goods/controller/Brand.php',
'app\\goods\\controller\\Cate' => $baseDir . '/application/goods/controller/Cate.php',
'app\\goods\\controller\\Product' => $baseDir . '/application/goods/controller/Product.php',
'app\\goods\\controller\\Spec' => $baseDir . '/application/goods/controller/Spec.php',
'app\\goods\\service\\ProductService' => $baseDir . '/application/goods/service/ProductService.php',
'app\\index\\controller\\Index' => $baseDir . '/application/index/controller/Index.php',
'app\\wechat\\controller\\Block' => $baseDir . '/application/wechat/controller/Block.php',
'app\\wechat\\controller\\Config' => $baseDir . '/application/wechat/controller/Config.php',

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitaf24f5f94ed079e6264991343eebb4cc
class ComposerAutoloaderInit82478bf98a2bb4bf864d022f0191d40d
{
private static $loader;
@ -19,15 +19,15 @@ class ComposerAutoloaderInitaf24f5f94ed079e6264991343eebb4cc
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitaf24f5f94ed079e6264991343eebb4cc', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit82478bf98a2bb4bf864d022f0191d40d', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitaf24f5f94ed079e6264991343eebb4cc', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit82478bf98a2bb4bf864d022f0191d40d', '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\ComposerStaticInitaf24f5f94ed079e6264991343eebb4cc::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit82478bf98a2bb4bf864d022f0191d40d::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
@ -48,19 +48,19 @@ class ComposerAutoloaderInitaf24f5f94ed079e6264991343eebb4cc
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitaf24f5f94ed079e6264991343eebb4cc::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit82478bf98a2bb4bf864d022f0191d40d::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequireaf24f5f94ed079e6264991343eebb4cc($fileIdentifier, $file);
composerRequire82478bf98a2bb4bf864d022f0191d40d($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequireaf24f5f94ed079e6264991343eebb4cc($fileIdentifier, $file)
function composerRequire82478bf98a2bb4bf864d022f0191d40d($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitaf24f5f94ed079e6264991343eebb4cc
class ComposerStaticInit82478bf98a2bb4bf864d022f0191d40d
{
public static $files = array (
'1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php',
@ -227,6 +227,11 @@ class ComposerStaticInitaf24f5f94ed079e6264991343eebb4cc
'app\\admin\\controller\\Node' => __DIR__ . '/../..' . '/application/admin/controller/Node.php',
'app\\admin\\controller\\Plugs' => __DIR__ . '/../..' . '/application/admin/controller/Plugs.php',
'app\\admin\\controller\\User' => __DIR__ . '/../..' . '/application/admin/controller/User.php',
'app\\goods\\controller\\Brand' => __DIR__ . '/../..' . '/application/goods/controller/Brand.php',
'app\\goods\\controller\\Cate' => __DIR__ . '/../..' . '/application/goods/controller/Cate.php',
'app\\goods\\controller\\Product' => __DIR__ . '/../..' . '/application/goods/controller/Product.php',
'app\\goods\\controller\\Spec' => __DIR__ . '/../..' . '/application/goods/controller/Spec.php',
'app\\goods\\service\\ProductService' => __DIR__ . '/../..' . '/application/goods/service/ProductService.php',
'app\\index\\controller\\Index' => __DIR__ . '/../..' . '/application/index/controller/Index.php',
'app\\wechat\\controller\\Block' => __DIR__ . '/../..' . '/application/wechat/controller/Block.php',
'app\\wechat\\controller\\Config' => __DIR__ . '/../..' . '/application/wechat/controller/Config.php',
@ -252,9 +257,9 @@ class ComposerStaticInitaf24f5f94ed079e6264991343eebb4cc
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitaf24f5f94ed079e6264991343eebb4cc::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitaf24f5f94ed079e6264991343eebb4cc::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitaf24f5f94ed079e6264991343eebb4cc::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit82478bf98a2bb4bf864d022f0191d40d::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit82478bf98a2bb4bf864d022f0191d40d::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit82478bf98a2bb4bf864d022f0191d40d::$classMap;
}, null, ClassLoader::class);
}

View File

@ -80,17 +80,17 @@
},
{
"name": "zoujingli/wechat-developer",
"version": "v1.0.3",
"version_normalized": "1.0.3.0",
"version": "v1.0.4",
"version_normalized": "1.0.4.0",
"source": {
"type": "git",
"url": "https://github.com/zoujingli/WeChatDeveloper.git",
"reference": "3414f6e6219f0110fe38edeeec8ae4a240ff8fd5"
"reference": "f9cad0f2221bec529c8908175e93d2891377d6d3"
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/zoujingli/WeChatDeveloper/3414f6e6219f0110fe38edeeec8ae4a240ff8fd5.zip",
"reference": "3414f6e6219f0110fe38edeeec8ae4a240ff8fd5",
"url": "https://files.phpcomposer.com/files/zoujingli/WeChatDeveloper/f9cad0f2221bec529c8908175e93d2891377d6d3.zip",
"reference": "f9cad0f2221bec529c8908175e93d2891377d6d3",
"shasum": ""
},
"require": {
@ -98,7 +98,7 @@
"ext-openssl": "*",
"php": ">=5.4"
},
"time": "2018-03-07T09:42:18+00:00",
"time": "2018-03-26T02:31:05+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -132,12 +132,12 @@
"source": {
"type": "git",
"url": "https://github.com/zoujingli/WeOpenDeveloper.git",
"reference": "c6ff9438f26b4c36b926fcc91cae7b5850a78bc7"
"reference": "8bb75bc08488a43964c00f027b21b93ed58e8d5a"
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/zoujingli/WeOpenDeveloper/c6ff9438f26b4c36b926fcc91cae7b5850a78bc7.zip",
"reference": "c6ff9438f26b4c36b926fcc91cae7b5850a78bc7",
"url": "https://files.phpcomposer.com/files/zoujingli/WeOpenDeveloper/8bb75bc08488a43964c00f027b21b93ed58e8d5a.zip",
"reference": "8bb75bc08488a43964c00f027b21b93ed58e8d5a",
"shasum": ""
},
"require": {
@ -146,7 +146,7 @@
"php": ">=5.4",
"zoujingli/wechat-developer": "^1.0.0"
},
"time": "2018-02-25T09:52:00+00:00",
"time": "2018-03-21T05:06:35+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {

View File

@ -244,7 +244,7 @@ class Custom extends BasicWeChat
{
$url = "https://api.weixin.qq.com/cgi-bin/message/mass/speed/set?access_token=ACCESS_TOKEN";
$this->registerApi($url, __FUNCTION__, func_get_args());
return $this->httpPostForJson($url, []);
return $this->httpPostForJson($url, ['speed' => $speed]);
}

View File

@ -90,7 +90,7 @@ class Tags extends BasicWeChat
{
$url = 'https://api.weixin.qq.com/cgi-bin/tags/members/batchtagging?access_token=ACCESS_TOKEN';
$this->registerApi($url, __FUNCTION__, func_get_args());
return $this->httpPostForJson($url, ['openid_list' => $openids, $tagId]);
return $this->httpPostForJson($url, ['openid_list' => $openids, 'tag_id' => $tagId]);
}
/**
@ -105,7 +105,7 @@ class Tags extends BasicWeChat
{
$url = 'https://api.weixin.qq.com/cgi-bin/tags/members/batchuntagging?access_token=ACCESS_TOKEN';
$this->registerApi($url, __FUNCTION__, func_get_args());
return $this->httpPostForJson($url, ['openid_list' => $openids, $tagId]);
return $this->httpPostForJson($url, ['openid_list' => $openids, 'tag_id' => $tagId]);
}
/**

View File

@ -17,7 +17,6 @@ PHP开发技术交流QQ群 513350915
> 针对 WeChatDeveloper 也有一准备了帮助资料可供参考。
>* WeChatDeveloper 文档http://www.kancloud.cn/zoujingli/wechat-developer
>* WeOpenDeveloper 文档http://www.kancloud.cn/zoujingli/weopen-developer
Repositorie
--
@ -25,6 +24,9 @@ Repositorie
>* GitHub 托管地址https://github.com/zoujingli/WeOpenDeveloper
>* OSChina 托管地址http://git.oschina.net/zoujingli/WeOpenDeveloper
更多开发可以参考项目 [ThinkService](https://github.com/zoujingli/ThinkService) 。
此项目已经实现对接,[ThinkAdmin](https://github.com/zoujingli/ThinkAdmin) + [ThinkService](https://github.com/zoujingli/ThinkService) 组合。
Install
--
* 通过 Composer 来管理安装