protected function doPost($opt, $data) { $url = $this->base . '&opt=' . $opt; if ($this->client_type == 'curl') { return $this->http->post($url, $data); } else { return Swoole\Client\Http::quickPost($url, $data); } }