Commit 61f1cba7 authored by clone's avatar clone

bug

parent a03dbd8c
......@@ -577,12 +577,14 @@ class Users extends Model
}
public function getAgentByReferrer($field, $params)
{
return Db::name($this->table)
$result = Db::name($this->table)
->field($field)
->alias("a")
->join("a_agents b", "a.referrer_id=b.id", "left")
->where($params)
->select();
// echo $this->getLastSql();
return $result;
}
/**
......
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