/** * 学校信息 * @method GET_infoAction * @param integer $id [description] * @author NewFuture */ public function GET_infoAction($id = 0) { if ($school = SchoolModel::find($id)) { $school['number'] = Config::get('regex.number.' . strtolower($school['abbr'])); $this->response(1, $school); } else { $this->response(0, $id); } }