Merge branch 'latest.skin_edit'

This commit is contained in:
2025-07-21 14:17:03 +09:00

View File

@ -117,13 +117,13 @@ $rb_skin['md_auto_is'] 자동롤링 여부(1,0)
if ($start_date && $end_date) { if ($start_date && $end_date) {
if ($todays < $start_date) { if ($todays < $start_date) {
$item['_status'] = '예정'; // 예정 $item['_status'] = '예정'; // 예정
$item['_sort'] = 0; $item['_sort'] = 1;
} elseif ($todays > $end_date) { } elseif ($todays > $end_date) {
$item['_status'] = '종료'; // 종료 $item['_status'] = '종료'; // 종료
$item['_sort'] = 3; $item['_sort'] = 3;
} else { } else {
$item['_status'] = '진행'; // 진행 중 $item['_status'] = '진행'; // 진행 중
$item['_sort'] = 1; $item['_sort'] = 0;
} }
} else { } else {
$item['_status'] = '기타'; $item['_status'] = '기타';
@ -144,6 +144,11 @@ $rb_skin['md_auto_is'] 자동롤링 여부(1,0)
return $a['_sort'] <=> $b['_sort']; return $a['_sort'] <=> $b['_sort'];
}); });
// 종료 상태인 항목 제외
$list = array_filter($list, function ($item) {
return $item['_status'] !== '종료';
});
// 정렬 후 list_count 재설정 // 정렬 후 list_count 재설정
$list_count = count($list); $list_count = count($list);