get_index_info($code); } /*** * @return array * wanggangtao * 获取指数列表 */ static public function getIndexList() { $Table_index = new Table_index(); return $Table_index->getIndexList(); } /** * @return mixed * 各种指数入库 */ static public function get_index($code,$exchange) { $Table_index = new Table_index(); return $Table_index->get_index($code,$exchange); } static public function getInfoById($id) { $Table_index = new Table_index(); return $Table_index->getInfoById($id); } static public function insert($attrs) { if (empty($attrs)) throw new Exception('参数不能为空', 102); $Table_index = new Table_index(); $id = $Table_index->insert($attrs); return $id; } static public function add($attrs){ if (empty($attrs)) throw new Exception('参数不能为空', 102); $Table_index = new Table_index(); $id = $Table_index->add($attrs); return $id; } } ?>