Browse Source

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

lizhen_gitee 3 months ago
parent
commit
2c7f88f1bb
1 changed files with 1 additions and 1 deletions
  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'])) {