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();
         }