Пример #1
0
 function recordCommonDownload($object, $id)
 {
     $statis = new StatisFactory();
     $this->setCommonParam();
     $sql = StatisFactory::getInsertRecordSql($object, $id, $this->_product, $this->_imeid, $this->_imei, $this->_imsi);
     $result = $this->executeSql($sql);
     if (!$result) {
         Log::write("DownloadStatis::recordCommonDownload():executeSql() sql:" . $sql . " error", "log");
         return false;
     }
     return true;
 }
Пример #2
0
 public function getInsertApplyStatisMongo()
 {
     $table = StatisFactory::getApplyRecodTable($this->_cooltype);
     return array('table' => $table, 'record' => array('ip' => $this->_ip, 'session' => $this->_session, 'id' => $this->_id, 'cpid' => $this->_cpid, 'product' => $this->_product, 'cooltype' => (int) $this->_cooltype, 'type' => (int) $this->_type, 'height' => (int) $this->_height, 'width' => (int) $this->_width, 'imei' => $this->_imei, 'imsi' => $this->_imsi, 'meid' => $this->_imeid, 'net' => $this->_net, 'insert_time' => date("Y-m-d H:i:s")));
 }