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