function httpSend($url, $method, $data) { $client = new TenpayHttpClient(); $client->setReqContent($url); $client->setMethod($method); $client->setReqBody($data); $res = ''; if ($client->call()) { $res = $client->getResContent(); } //设置debug信息 $this->_setDebugInfo('Req Url:' . $url); $this->_setDebugInfo('Req data:' . $data); $this->_setDebugInfo('Res Content:' . $res); return $res; }