Jelajahi Sumber

Merge branch 'master' of http://git.huxiukeji.com/lizhen/xiaoshan

lizhen_gitee 3 bulan lalu
induk
melakukan
2c7f88f1bb
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      application/api/controller/UniversityEvent.php

+ 1 - 1
application/api/controller/UniversityEvent.php

@@ -89,7 +89,7 @@ class UniversityEvent extends Api
             if (empty($v['phone'])) {
                 return $this->error('报名信息手机号不能为空');
             }
-            if (empty($v['sex'])) {
+            if (!isset($v['sex']) && $v['sex'] !== 0) {
                 return $this->error('报名信息性别不能为空');
             }
             if (empty($v['age'])) {