Пример #1
0
 /**
  * 覆盖父类方法
  * @see MY_Model::getData()
  */
 function getData($where = '', $colum = '')
 {
     //更改数据库链接配置
     $this->db = $this->load->database('ntsdf', true);
     $findData = parent::getData($where, $colum);
     //查完之后将数据库链接设置回默认设置
     $this->db = $this->load->database('', true);
     return $findData;
 }
Пример #2
0
 /**
  * 查找指定专营店信息
  * @param int $id
  * @return array
  */
 function getNewData($where)
 {
     //更改数据库链接配置
     $this->db = $this->load->database('dflpvmkt', true);
     //isset($where['SpState_sys']) || $where['SpState_sys'] = 1;
     //isset($where['isOpen']) || $where['isOpen'] = 1;
     $findData = parent::getData($where, $this->colum);
     //查完之后将数据库链接设置回默认设置
     $this->db = $this->load->database('', true);
     return $this->gbkToUtf8($findData);
 }