linwu преди 9 месеца
родител
ревизия
b89fac70e9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/matchmaker/controller/UserController.php

+ 1 - 1
app/matchmaker/controller/UserController.php

@@ -282,7 +282,7 @@ class UserController extends MatchmakerBaseController
             //系统库
             $list = UserModel::where('user_type', 2)
                 ->where('user_status', 1)
-                ->where('sex', '=', $user['sex'] == 1 ? 1 : 2)
+                ->where('sex', '<>', $user['sex'] == 1 ? 1 : 2)
                 ->append(['sex_text'])
                 ->select();
         }