public function task_hand_end() { $task_list = db_factory::query(sprintf(" select * from %switkey_task where task_status=2 and sub_time < '%s' and model_id = '1' and task_union!=2", TABLEPRE, time())); if (is_array($task_list)) { foreach ($task_list as $k => $v) { $task_hand_obj = new sreward_task_class($v); $task_hand_obj->time_hand_end(); } } }