Commit 42a20254 authored by clone's avatar clone Committed by hujun

兼容

parent 1fce110f
......@@ -9,12 +9,6 @@ class Users extends Model
{
// 设置当前模型对应的完整数据表名称
protected $table = 'u_users';
protected $usersModel;
function __construct()
{
$this->usersModel = Db($this->table);
}
/**
* 查询用户
......@@ -40,7 +34,7 @@ class Users extends Model
}
public function getUserByWhere($param, $fields = 'id,user_phone')
{
$data = $this->usersModel
$data = $this
->field($fields)
->where($param)
->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