| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- /***
- * Class Index_sh50
- * * @author 王刚涛
- * 日线数据
- */
- class Index {
- public function __construct()
- {
- }
- 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;
- }
- }
- ?>
|