| <?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; | 
|         } | 
|     } | 
|   | 
| } |