chengkun
2025-05-20 f6f7bd25619ad0c0dfb5e609332e9fa1db419386
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
<?php
 
 
class admin_spview_set_controller extends adminCommon{
 
    function index_action(){
        
        $this -> yuntpl(array('admin/admin_spview_set'));
    }
    function save_action(){
        
        if($_POST['set_config']){
            
            $config  =  array(
                'sy_spview_wait'       =>  $_POST['sy_spview_wait'],
                'sy_spview_time'       =>  $_POST['sy_spview_time'],
                'sy_spview_yytime'     =>  $_POST['sy_spview_yytime'],
                'sy_spview_appkey'     =>  $_POST['sy_spview_appkey'],
                'sy_spview_appsecret'  =>  $_POST['sy_spview_appsecret']
            );
            $configM  =  $this->MODEL('config');
            
            $configM -> setConfig($config);
            
            $this -> web_config();
            
            $this->ACT_layer_msg('视频面试配置成功',9,$_SERVER['HTTP_REFERER'],2,1);
        }
    }
    /**
     * 查询视频面试剩余分钟数
     */
    function get_restnum_action(){
        
        $trtcM   =  $this->MODEL('trtc');
        $return  =  $trtcM->trtcCanAdd();
        
        echo json_encode($return);die;
    }
}
?>