public function get_user_list($next_openid = '') { if ($next_openid != '') { $next_openid = '&next_openid=' . $next_openid; } $url = self::API_DOMAIN . 'cgi-bin/user/get?access_token=' . $this->get_access_token() . $next_openid; $res = HttpCurl::get($url, 'json'); // 异常处理: 获取时网络错误 if ($res === false) { return Error::code('ERR_POST'); } // 判断是否调用成功 if (isset($res->data)) { return array(null, $res); } else { return array($res, null); } }