chenbo 5 年之前
父節點
當前提交
dae206b64a
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);