Esempio n. 1
0
 /**
  * 调用接口
  * @param string $encode 返回编码方式self::ENCODE_RPCSERI(序列化[默认]) 和 self::ENCODE_AJAX(json方式)
  * @return array
  */
 public function callInterface($isAjax = false)
 {
     //		if(!$isAjax)echo $this->_sendUrl;
     $this->_httpDown->OpenUrl($this->_sendUrl);
     if ($this->_httpDown->IsGetOK()) {
         $data = $this->_httpDown->GetRaw();
         $this->_httpDown->Close();
         // 			var_dump($data);
         return $data;
     } else {
         if (!$isAjax) {
             echo $this->_sendUrl;
         }
         return false;
     }
 }