[更新]修改测试文件

This commit is contained in:
邹景立 2018-02-01 10:04:37 +08:00 committed by Anyon
parent 6feff40c38
commit 6a70effc04

View File

@ -35,9 +35,14 @@ try {
$user = new \WeChat\User($config);
// 4. 调用接口对象方法
$list = $user->getUserList();
$result = $user->getUserList();
echo '<pre>';
var_export($list);
var_export($result);
// 5. 分配获取用户信息
foreach (array_chunk($result['data']['openid'], 100) as $item) {
$batch = $user->getBatchUserInfo($item);
}
} catch (Exception $e) {