wanggangtao лет назад: 5
Родитель
Сommit
32f0ae2bbb
2 измененных файлов с 4 добавлено и 4 удалено
  1. 3 3
      lib/input163Index.class.php
  2. 1 1
      task/task_get_history_index.php

+ 3 - 3
lib/input163Index.class.php

@@ -17,10 +17,10 @@ class Input163index
     static public function stock_block($code)
     {
         $f = substr($code, 0, 1);
-        if ($f == "6") {
-            $stock_code = "1" . $code;
-        } else {
+        if ($f == "6" || $f == "0") {
             $stock_code = "0" . $code;
+        } else {
+            $stock_code = "1" . $code;
         }
         return $stock_code;
     }

+ 1 - 1
task/task_get_history_index.php

@@ -8,7 +8,7 @@
  */
 require('../init.php');
 
-$start_date=20140101;
+$start_date=20201201;
 $end_date=date("Ymd",time());
 $indexList=Index::getIndexList();//获取指数代码
 foreach ($indexList as $key=>$value){