Exemplo n.º 1
0
 /**
  * 请求DC的方法演示 批量获取域名状态信息
  */
 public function dcAction()
 {
     // $dcUrl = 'http://192.168.10.115:800';
     // 见debug.php
     $dataCenter = new \core\DataCenter();
     return $dataCenter->getPostData(array('domains' => 'abc.com,aaaa.com'));
 }
Exemplo n.º 2
0
 /**
  * 发送数据到DC
  *
  * @param string $method
  * @param array $data
  */
 private function sendToDC($method, $data, $type = 'get')
 {
     $dc = new \core\DataCenter($method);
     if ('get' == $type) {
         return $dc->getData($data);
     }
     return $dc->getPostData($data);
 }