|
|
@@ -69,13 +69,25 @@ class Input_163
|
|
|
continue;
|
|
|
}
|
|
|
if (!empty($data['name'])) { //判断非法股票代码
|
|
|
- Index_day_k::addOrUpdateByCodeDate($data);
|
|
|
+ Index_day_k::addOrUpdateByCodeDate($data)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ //获取自20140101到前一天的指定的指数数据
|
|
|
+ static public function getIndexDayK()
|
|
|
+ {
|
|
|
+ $indexList = Index::getAllList();
|
|
|
+ $start_date = 20210106;
|
|
|
+ $end_date = (int)date('Ymd', time());
|
|
|
+ foreach($indexList as $item) {
|
|
|
+ self::getPartIndexDayK($item['code'], $start_date, $end_date);
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
?>
|