Explorar el Código

查询条件修改

wq hace 4 años
padre
commit
fc95171b62
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      app/controller/sysUserController.js

+ 7 - 1
app/controller/sysUserController.js

@@ -212,7 +212,13 @@ class SysUserController extends Controller {
         case '2':// 已认证 已绑定
           ctx.query.$and = [
             { file: { $exists: true, $ne: '' } },
-            { openId: { $exists: true, $ne: '' } },
+            {
+              $or : [
+                { openId: { $exists: true, $ne: '' } },
+                { appletsId: { $exists: true, $ne: '' } },
+              ]
+            }
+
           ];
           break;
         default: