예제 #1
0
     */
    protected function FetchRow($sql)
    {
        $p = $this->db->query($sql);
        $p->setFetchMode(PDO::FETCH_ASSOC);
        $result = $p->fetchAll();
        return $result[0];
    }
}
error_reporting(E_ALL ^ E_NOTICE);
//接收stationid
$stationid = $argv[1];
if (!$stationid) {
    exit;
}
$obj = new LogDo($stationid);
$station = $obj->STATION[0];
$check = $obj->CheckDo();
// foreach ($stations as $k=>$v)
// {
if (!in_array($station['id'], $check)) {
    $obj->setPath($station['logfile'], $station['logname']);
    $obj->setIpFilter($station['logip'], $station['ifconf'], $station['ap'], $station['xuip'], $station['is_alone']);
    $obj->setStationId($station['id']);
    $obj->clear();
    $obj->Ad1ClickStatic();
    $obj->Ad1Info();
    $obj->Ad2Info();
    $obj->InCheck();
}
// }