chenbo il y a 4 ans
Parent
commit
78a120750a
2 fichiers modifiés avec 0 ajouts et 52 suppressions
  1. 0 21
      lib/index_day_k.class.php
  2. 0 31
      lib/table/table_index_day_k.class.php

+ 0 - 21
lib/index_day_k.class.php

@@ -65,26 +65,5 @@ class Index_day_k {
         return AddOrSubDate($recent_date, 1);
     }
 
-
-
-    //----------------------------------------
-
-    static public function add($attrs){
-        if (empty($attrs)) throw new Exception('参数不能为空', 102);
-        $Table_index_day_k = new Table_index_day_k();
-        $id = $Table_index_day_k->add($attrs);
-        return $id;
-    }
-
-    static public function insert($attrs)
-    {
-        if (empty($attrs)) throw new Exception('参数不能为空', 102);
-        $Table_index_day_k = new Table_index_day_k();
-        $id = $Table_index_day_k->insert($attrs);
-        return $id;
-    }
-
-
-
 }
 ?>

+ 0 - 31
lib/table/table_index_day_k.class.php

@@ -51,36 +51,5 @@ class Table_index_day_k extends Table {
         return $this->pdo->sqlinsert($this->table_fullname, $param);
     }
 
-
-    //-------------------------------
-
-
-
-
-
-
-    /***
-     * @param $attr
-     * @return mixed
-     * 历史指数数据
-     */
-    public function insert($attr){
-        $param = array (
-
-            'index_day_k_timestamp'    => array('number', $attr['timestamp']),
-            'index_day_k_date'    => array('number', $attr['date']),
-            'index_day_k_code'    => array('string', $attr['code']),
-            'index_day_k_name'    => array('string', $attr['name']),
-            'index_day_k_open_price'    => array('number', $attr['open_price']),
-            'index_day_k_close_price'    => array('number', $attr['close_price']),
-            'index_day_k_highest_price'    => array('number', $attr['highest_price']),
-            'index_day_k_lowest_price'    => array('number', $attr['lowest_price']),
-            'index_day_k_increase_price'    => array('number', $attr['increase_price']),
-            'index_day_k_increase_ratio'    => array('number', $attr['increase_ratio']),
-            'index_day_k_amount'    => array('number', $attr['amount']),
-            'index_day_k_value'    => array('number', $attr['value']),        );
-        return $this->pdo->sqlinsert($this->table_fullname, $param);
-    }
-
 }
 ?>