mod = M('home_city'); } /** * 获取正常状态下的城市 * @return mixed */ public function get_data() { $where = array( 'status' => self::status_on, ); $data = $this->where($where)->select(); return $data; } }