foreach ($itemid as $v) { $db->query("UPDATE {$table} SET totime=totime+{$days}*86400,status=3 WHERE itemid='{$v}' AND totime>0"); } $do->expire(); dmsg('延时成功', $forward); } else { $do->expire(); dmsg('刷新成功', $forward); } } else { $lists = $do->get_list('status=4' . $condition, $dorder[$order]); $menuid = 3; include tpl('index', $module); } break; case 'check': if ($itemid && !$psize) { $do->check($itemid); dmsg('审核成功', $forward); } else { $lists = $do->get_list('status=2' . $condition, $dorder[$order]); $menuid = 2; include tpl('index', $module); } break; default: $lists = $do->get_list('status=3' . $condition, $dorder[$order]); $menuid = 1; include tpl('index', $module); break; }