linwu пре 9 месеци
родитељ
комит
cb016ac9aa
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      app/matchmaker/controller/UserController.php

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

@@ -268,21 +268,21 @@ class UserController extends MatchmakerBaseController
             //自有库
             $list = MatchmakerUserModel::where('matchmaker_id', $this->matchmaker->id)
                 ->where('id', '<>', $id)
-                ->where('sex', '<>', $user['sex'] == 1 ? 2 : 1)
+                ->where('sex', '<>', $user['sex'] == 1 ? 1 : 2)
                 ->append(['sex_text'])
                 ->select();
         } elseif ($type == 1) {
             //其他红娘库
             $list = MatchmakerUserModel::with('matchmaker')
                 ->where('matchmaker_id', '<>', $this->matchmaker->id)
-                ->where('sex', '<>', $user['sex'] == 1 ? 2 : 1)
+                ->where('sex', '<>', $user['sex'] == 1 ? 1 : 2)
                 ->append(['sex_text'])
                 ->select();
         } else {
             //系统库
             $list = UserModel::where('user_type', 2)
                 ->where('user_status', 1)
-                ->where('sex', '=', $user['sex'] == 1 ? 2 : 1)
+                ->where('sex', '=', $user['sex'] == 1 ? 1 : 2)
                 ->append(['sex_text'])
                 ->select();
         }