linwu 7 hónapja
szülő
commit
d50bebfb93

+ 1 - 1
app/common/Constant.php

@@ -8,7 +8,7 @@ class Constant
     const SEX_MATCHMAKER = [1 => '男', 2 => '女'];
     const MARRY          = ['未婚', '离婚', '丧偶'];
     const TYPE           = ['交朋友', '找知己', '谈恋爱', '结婚'];
-    const EDUCATION      = ['本科以下', '本科', '硕士', '博士'];
+    const EDUCATION      = ['大专以下','大专', '本科', '硕士', '博士'];
     const TINYINT        = ['保密', '是', '否'];
     const COND_TINYINT   = ['不限', '是', '否'];
 //    const JOB = ['销售','IT工程师','教授','在校学生','产品经理','总经理','副总/总监','部门经理','中层管理','企业家','个体老板','高级干部','公务员','律师','医生','护士','专家学者','工程师','设计师','艺术家','演员','模特','离/退休','技术员','服务员','普通员工','自由职业','无业'];

+ 7 - 2
app/matchmaker/controller/UserController.php

@@ -632,10 +632,15 @@ class UserController extends MatchmakerBaseController
             }
 
             //学历 ['本科以下','本科','硕士','博士','无要求']
-            if ($mating['education'] == '无要求' || $mating['education'] == '科以下') {
+            if ($mating['education'] == '无要求' || $mating['education'] == '科以下') {
                 $match_arr[] = 'education';
                 $match_count++;
-            } elseif ($mating['education'] == '本科') {
+            } elseif ($mating['education'] == '专科') {
+                if (in_array($v['education'], ['专科','本科', '硕士', '博士'])) {
+                    $match_arr[] = 'education';
+                    $match_count++;
+                }
+            }elseif ($mating['education'] == '本科') {
                 if (in_array($v['education'], ['本科', '硕士', '博士'])) {
                     $match_arr[] = 'education';
                     $match_count++;