Browse Source

cld接口-qq搜索用户

laiguoran 5 years ago
parent
commit
b0db5276e0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      modules/users/models/user_model.js

+ 6 - 0
modules/users/models/user_model.js

@@ -457,6 +457,12 @@ class UserModel extends BaseModel {
             condition.$or = [{real_name : {$regex: keyword}},{email : {$regex: keyword}},{mobile : {$regex: keyword}},{company : {$regex: keyword}}];
         }
 
+        let qq = request.query.qq;
+        qq = qq !== '' && qq !== undefined ? parseInt(qq) : 0;
+        if (qq !== 0) {
+            condition.qq = qq;
+        }
+
         return condition;
     }