Exemplo n.º 1
0
<?php

/**
*
* @creator gufl@uuzu.com   
* @create-time 2013-12-24 
* @revision $Id
*/
require dirname(__FILE__) . '/../global.php';
TenYear::getInstance();
ini_set('default_socket_timeout', -1);
Com_AdCache::factory()->set_timeout(0);
//注册数据中心接收处理数据
Com_DataCenters::getInstance()->receive_data();
echo "register DATA receive \r\n";
echo "start receive \r\n";
//开始接收
Com_Queued::receive_all();
Exemplo n.º 2
0
 /**
  * 广告系统用户推送数据
  * @param unknown_type $account
  * @param unknown_type $type
  * @return Ambigous <mixed, Ambigous>
  */
 public static function send_request($account, $type, $nowTime = 0)
 {
     if (empty($nowTime)) {
         $nowTime = time();
     }
     $ip = Com_System::get_client_ip();
     Com_DataCenters::getInstance()->publish_data('curlDate', $account, $type, $nowTime, $ip);
 }