/** * 获取书籍详情 * @method GET_infoAction * @param integer $id [description] * @author NewFuture */ public function GET_infoAction($id = 0) { // $uid = $this->auth(); if ($book = BookModel::belongs('printer')->find($id)) { $this->response(1, $book); } else { $this->response(0, '信息已经删除'); } }