Commit 835fb444 authored by clone's avatar clone

bug

parent 550c726b
...@@ -9,12 +9,6 @@ class Agents extends Model ...@@ -9,12 +9,6 @@ class Agents extends Model
{ {
protected $table = 'agents'; protected $table = 'agents';
protected $agentsModel;
function __construct()
{
$this->agentsModel = Db($this->table);
}
/** /**
* 查询经纪人 * 查询经纪人
* *
...@@ -115,7 +109,7 @@ class Agents extends Model ...@@ -115,7 +109,7 @@ class Agents extends Model
*/ */
public function getAgentsById($field, $where_) public function getAgentsById($field, $where_)
{ {
$data = $this->agentsModel $data = $this
->field($field) ->field($field)
->where($where_) ->where($where_)
->select(); ->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