chengkun
2025-05-23 a6f7b382623096b6a00924f418447cf5204e825e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
 
class binding_controller extends user{
    //绑定授权
    function index_action(){
        
        $UserinfoM    =    $this -> MODEL('userinfo');
        
        $member        =    $UserinfoM -> getInfo(array('uid'=> $this->uid));
        
        $this -> yunset('member', $member);
        
        $this -> public_action();
        
        $this -> user_tpl('binding');
    
    }
    
    /**
     * @desc 手机认证
     */
    function save_action(){
        
        $CookieM   =   $this -> MODEL('cookie');
        
        $CookieM   ->  SetCookie('delay', '', time() - 60);
        
        $CompanyM  =   $this -> MODEL('company');
        
        $data      =   array(
            
            'uid'        =>    $this->uid,
            
            'usertype'    =>    $this->usertype,
            
            'moblie'    =>    $_POST['moblie']
 
        );
        
        $nid      =      $CompanyM -> upCertInfo(array('uid'=>$this->uid,'check2'=>$_POST['code']),array('status'=>'1'), $data); 
        
        echo $nid; die;
    
    }
    
    /**
     * @desc 个人身份认证
     */
    function savecert_action(){
        
        $UserinfoM    =    $this -> MODEL('userinfo');
        
        $upResumeData    =    array(
            
            'idcard'    =>    $_POST['idcard'],
            'name'        =>    $_POST['name'],
            'uid'        =>    $this->uid,
            'usertype'    =>    $this->usertype,
            'file'        =>  $_FILES['file']
        );
        
        $return        =    $UserinfoM -> upidcardInfo(array('uid'=>$this->uid),$upResumeData);
        
        $this->ACT_layer_msg($return['msg'],$return['errcode'],$_SERVER['HTTP_REFERER'],2,1);
    
    }
    //解除绑定
    function del_action(){
        
        $comM     =    $this->MODEL('company');
        
        $return      =    $comM->delBd($this->uid,array('type'=>$_GET['type'],'usertype'=>$this->usertype));
        
        $this->layer_msg($return['msg'],$return['errcode'],0,$_SERVER['HTTP_REFERER']);
    }
    
}
?>