소스 검색

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

lizhen_gitee 3 달 전
부모
커밋
2c7f88f1bb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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'])) {