/** * 查询某一个项 * * @param string $query * @param string $fields * @return string */ public function findOne($query, $fields) { $query = $this->toArray($query); if (!empty($fields)) { $fields = $this->toArray($fields); } else { $fields = array(); } $rst = $this->_model->findOne($query, $fields); return $this->result($rst); }