protected function doGet($opt) { $url = $this->base . '&opt=' . $opt; if ($this->client_type == 'curl') { return $this->http->get($url); } else { return Swoole\Client\Http::quickGet($url); } }