'test', 'appid' => 'wx60a43dd8161666d4', 'appsecret' => '71308e96a204296c57d7cd4b21b883e8', 'encodingaeskey' => 'BJIUzE0gqlWy0GxfPp4J1oPTBmOrNDIGPNav1YFH5Z5', // 配置商户支付参数 'mch_id' => "1235704602", 'mch_key' => 'IKI4kpHjU94ji3oqre5zYaQMwLHuZPmj', // 配置商户支付双向证书目录 'ssl_key' => '', 'ssl_cer' => '', ]; try { // 3. 实例对应的接口对象 $user = new \WeChat\User($config); // 4. 调用接口对象方法 $list = $user->getUserList(); echo '
';
    var_export($list);

} catch (Exception $e) {

    // 出错啦,处理下吧
    echo $e->getMessage() . PHP_EOL;

}