Commit 1ace4769 authored by zhuwei's avatar zhuwei

model

parent 780cb038
......@@ -984,5 +984,20 @@ class Users extends Model
//dump($this->getLastSql());
return $data;
}
public function verifyUser($field, $join, $params)
{
try {
$data = $this->field($field)
->alias('a')
->join($join)
->where($params)
->find();
} catch (\Exception $e) {
$data = [];
}
return $data;
}
}
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