colly_wyx
2018-05-09 e6c0c096dc8ecefc61c4a3822750c43a1727f250
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
 
class Service_DailyLog extends System_Service_Base{
 
    public function __construct(){
        $this->dailyLog_model = new DailyLogModel();
    }
 
    /**
     * 添加汇总日志
     * @param [type] $day [description]
     */
    public function addLog($day){
        $data['day'] = $day;
        $data['create_time'] = date('Y-m-d H:i:s');
        return $this->dailyLog_model->add($data);
    }
 
    public function isSummary($day){
        $daily_log = $this->dailyLog_model->get(array('day' => $day));
        if($daily_log){
            return true;
        }
        else{
            return false;
        }
    }
 
}