mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[更新]修改测试文件
This commit is contained in:
parent
6feff40c38
commit
6a70effc04
9
test.php
9
test.php
@ -35,9 +35,14 @@ try {
|
|||||||
$user = new \WeChat\User($config);
|
$user = new \WeChat\User($config);
|
||||||
|
|
||||||
// 4. 调用接口对象方法
|
// 4. 调用接口对象方法
|
||||||
$list = $user->getUserList();
|
$result = $user->getUserList();
|
||||||
echo '<pre>';
|
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) {
|
} catch (Exception $e) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user