Commit 01fd0556 authored by clone's avatar clone

bug

parent d41de24c
......@@ -41,14 +41,12 @@ class Users extends Model
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getUserByWhere($pageNo, $pageSize,$param, $fields = 'id,user_phone')
public function getUserByWhere($param, $fields = 'id,user_phone')
{
$data = $this
->field($fields)
->where($param)
->order('create_time desc')
->limit($pageSize)
->page($pageNo)
->select();
return $data;
}
......@@ -603,6 +601,10 @@ class Users extends Model
}
}
/**
* @param $buyer_id
* @return int
*/
public function unbundlingWx($buyer_id)
{
return $this->where("buyer_id", $buyer_id)->setField("buyer_id", 0);
......
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