Parcourir la source

Merge branch 'master' of http://121.40.40.223:3000/wiipu/boniu

chenbo il y a 5 ans
Parent
commit
ff9234ee78
1 fichiers modifiés avec 8 ajouts et 7 suppressions
  1. 8 7
      lib/sina.class.php

+ 8 - 7
lib/sina.class.php

@@ -289,13 +289,14 @@ class Sina
      */
     static public function get_day_k_base($code, $date)
     {
-        $stock_code = $code;
-        $f = substr($stock_code, 0, 1);
-        if ($f == "6"  || $f == "0" ) {
-            $stock_code = "sh" . $code;
-        } else {
-            $stock_code = "sz" . $code;
-        }
+//        $stock_code = $code;
+//        $f = substr($stock_code, 0, 1);
+//        if ($f == "6"  || $f == "0" ) {
+//            $stock_code = "sh" . $code;
+//        } else {
+//            $stock_code = "sz" . $code;
+//        }
+        $stock_code= self::get_boniu_block($code);
         $url = "http://hq.sinajs.cn/list=" . $stock_code;
         $content3=sina::curl_get_data($url);//封装为函数,
         $data['date'] = $content3[30];