public function chkMailType()
 {
     $mail = isset($_POST['data']) ? I('post.data') : '';
     $enterprise_id = isset($_POST['eid']) ? I('post.eid') : '';
     $type = isset($_POST['type']) ? intval(I('post.type')) : 0;
     if ($mail && $enterprise_id) {
         if (!parent::checkMail($mail)) {
             exit(json_encode(array('status' => FALSE, 'msg' => '邮箱格式错误')));
         }
         if ($this->checkMailType($mail)) {
             exit(json_encode(array('status' => FALSE, 'msg' => '不属于企业邮箱')));
         } else {
             $where['e.contact_mail'] = $mail;
             if ($type === 1) {
                 $where['e.enterprise_id'] = array('neq', $enterprise_id);
             }
             $count = M('enterprise_contact as e')->where($where)->getField('e.pkid');
             if ($count) {
                 exit(json_encode(array('status' => FALSE, 'msg' => '该邮箱已经被使用')));
             } else {
                 exit(json_encode(array('status' => TRUE, 'msg' => '')));
             }
         }
     } else {
         exit(json_encode(array('status' => FALSE, 'msg' => '不能为空')));
     }
 }