function task_finish_auto_mark() { $nomark_wk_list = db_factory::query(sprintf('select `mark_id` from %switkey_mark where model_code="%s" and mark_status=0 and mark_max_time<%d and mark_type=1', TABLEPRE, 'dtender', time())); if (is_array($nomark_wk_list)) { foreach ($nomark_wk_list as $v) { keke_user_mark_class::exec_mark_process($v['mark_id'], "系统自动好评", 1, "4,5", "5.0,5.0"); } } $nomark_gz_list = db_factory::query(sprintf('select `mark_id` from %switkey_mark where model_code="%s" and mark_status=0 and mark_max_time<%d and mark_type=2', TABLEPRE, 'dtender', time())); if (is_array($nomark_gz_list)) { foreach ($nomark_gz_list as $v) { keke_user_mark_class::exec_mark_process($v['mark_id'], "系统自动好评", 1, "1,2,3", "5.0,5.0,5.0"); } } }
public static function hp_timeout($days = 7) { $mark_list = db_factory::query(sprintf("select * from %switkey_mark where mark_status=0 and mark_time<'%d'-'%d'", TABLEPRE, time(), 7 * 24 * 3600)); if (is_array($mark_list)) { foreach ($mark_list as $v) { keke_user_mark_class::exec_mark_process($v[mark_id], '', 1); } } }