|
|
@@ -80,10 +80,15 @@ class Input_163
|
|
|
static public function getIndexDayK()
|
|
|
{
|
|
|
$indexList = Index::getAllList();
|
|
|
- $start_date = 20210106;
|
|
|
$end_date = (int)date('Ymd', time());
|
|
|
+ $end_year = (int)($end_date / 10000);
|
|
|
+ for($year = 2014; $year < $end_year; $year++) {
|
|
|
+ foreach($indexList as $item) {
|
|
|
+ self::getPartIndexDayK($item['code'], $year.'0101', $year.'1231');
|
|
|
+ }
|
|
|
+ }
|
|
|
foreach($indexList as $item) {
|
|
|
- self::getPartIndexDayK($item['code'], $start_date, $end_date);
|
|
|
+ self::getPartIndexDayK($item['code'], $end_year.'0101', $end_year.'1231');
|
|
|
}
|
|
|
return;
|
|
|
}
|