chengkun
2025-05-26 4462855c0033970c39ac8d0da704b7dc41eabbfe
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
<?php
 
class zphnetv_controller extends common{ 
 
    function __construct($tpl,$db,$def='',$model='index',$m='') {
        $this->common($tpl,$db,$def,$model,$m);
        
        if ($_GET['m'] == 'xjh'){
            return true;
        }else{
            return false;
        }
    }
    public function render_json($error='', $msg='', $data = array()) {
        $result = array(
            'error'  =>  $error,
            'msg'    =>  $msg,
            'data'   =>  $data
        );
        header('content-type:application/json; charset=utf-8');
        echo json_encode($result);
        exit;
    }
}
?>