chenbo hace 5 años
padre
commit
dae206b64a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lib/input_163.class.php

+ 2 - 2
lib/input_163.class.php

@@ -11,7 +11,7 @@ class Input_163
     const GLOBAL_URL_0 = "http://quotes.money.163.com/service/chddata.html?code=";
     const GLOBAL_URL_1 = "&start=";
     const GLOBAL_URL_2 = "&end=";
-    const GLOBAL_URL_3 = "&fields=TOPEN;HIGH;LOW;TCLOSE;VATURNOVER;VOTURNOVER;CHG;PCHG";
+    const GLOBAL_URL_3 = "&fields=TOPEN;HIGH;LOW;TCLOSE;VATURNOVER;VOTURNOVER;CHG;PCHG;TCLOSE";
 
     static private function curl_get_data($url){
         $curlHandle = curl_init();
@@ -83,7 +83,7 @@ class Input_163
     static public function getIndexDayK()
     {
         $indexList = Index::getAllList();
-        $start_date = 20210106;
+        $start_date = 20210108;
         $end_date = (int)date('Ymd', time());
         foreach($indexList as $item) {
             self::getPartIndexDayK($item['code'], $start_date, $end_date);