Commit c70a7a8a authored by hujun's avatar hujun

条件组装

parent ca0879f8
...@@ -42,6 +42,14 @@ class ChatUserExt extends BaseModel ...@@ -42,6 +42,14 @@ class ChatUserExt extends BaseModel
$where_['ext_id'] = $params['ext_id']; $where_['ext_id'] = $params['ext_id'];
} }
if (isset($params['device_id'])) {
$where_['device_id'] = $params['device_id'];
}
if (isset($params['push_id'])) {
$where_['push_id'] = $params['push_id'];
}
$data = $this->db->field($field) $data = $this->db->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