Finance/ISIN/SG.php
authorleon <leon@roojs.com>
Thu, 21 Dec 2023 08:15:00 +0000 (16:15 +0800)
committerleon <leon@roojs.com>
Thu, 21 Dec 2023 08:15:00 +0000 (16:15 +0800)
Finance/ISIN/SG.php

index 1878d1f..cfa26c7 100644 (file)
@@ -2,15 +2,6 @@
 class Finance_ISIN_SG extends Finance_ISIN
 {
     static function updateMap($stockCode)
-    {
-        $isin = self::getISIN($stockCode);
-
-        if($isin) {
-            self::$map[$stockCode] = $isin;
-        }
-    }
-
-    static function getISIN($stockCode) 
     {
         $ch = curl_init();
         // $f = tmpfile();
@@ -48,5 +39,9 @@ class Finance_ISIN_SG extends Finance_ISIN
         var_dump("GET SG ISIN\n");
         var_dump($str);
         die('test');
+
+        if($isin) {
+            self::$map[$stockCode] = $isin;
+        }
     }
 }
\ No newline at end of file