Hot.php
458 字节
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2020/4/29
* Time: 14:51
*/
namespace app\index\model;
use think\Model;
class Hot extends Model
{
public function findData($where){
$data = $this->where($where)->find();
return $data;
}
public function selectData($where){
$where['status'] = ['eq','1'];
$data = $this->where($where)->order('weigh desc')->select();
return $data;
}
}