Ejemplo n.º 1
0
 public function task_top_end()
 {
     $task_list = db_factory::query(sprintf(" select * from %switkey_task a left join %switkey_payitem_record b\n\t\t\t\ton a.task_id=b.obj_id where a.tasktop=1 and a.model_id = '1' and  b.obj_type='task' and b.end_time < '%s'  ", TABLEPRE, TABLEPRE, time()));
     if (is_array($task_list)) {
         foreach ($task_list as $k => $v) {
             $task_obj = new sreward_task_class($v);
             $task_obj->task_top_end();
         }
     }
 }