Commit 835fb444 authored by clone's avatar clone

bug

parent 550c726b
......@@ -9,12 +9,6 @@ class Agents extends Model
{
protected $table = 'agents';
protected $agentsModel;
function __construct()
{
$this->agentsModel = Db($this->table);
}
/**
* 查询经纪人
*
......@@ -115,7 +109,7 @@ class Agents extends Model
*/
public function getAgentsById($field, $where_)
{
$data = $this->agentsModel
$data = $this
->field($field)
->where($where_)
->select();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment