HEX
Server: Apache/2.4.6 (CentOS) PHP/5.6.39
System: Linux izj6c6ukj0hyugxsgmuxz3z 3.10.0-514.6.2.el7.x86_64 #1 SMP Thu Feb 23 03:04:39 UTC 2017 x86_64
User: root (0)
PHP: 5.6.39
Disabled: NONE
Upload Files
File: /web/data/weixin.tbbbearing.com/App/Manage/Model/AdModel.class.php
<?php
/**
 * Created by PhpStorm.
 * User: 18613127572
 * Date: 2018/1/30
 * Time: 12:32
 */

namespace Manage\Model;


use Think\Model;

class AdModel extends Model{
    /**
     * 获取 一个分类信息
     * @param $where
     * @return mixed
     */
    public function get_cate_one($where){
        return $this->where($where)->find();
    }

    /**
     * 获取所有分类
     * @param string $where
     * @return mixed
     */
    public function get_all_cate($where='1'){
        return $this->where($where)->select();
    }
}