chengkun
2025-05-26 8f3df543230cd4403368b39b9bbe5726d11a0284
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
 
class evaluate_controller extends common{ 
    function evaluate_tpl($tpl){
        $this->yuntpl(array('default/evaluate/'.$tpl));
    }
    
    function imgWebUrl($imgPath){
        return $this->config['sy_weburl']."/".$imgPath;
    }    
    
    function create_uuid($prefix = "yun"){    //可以指定前缀
        $str     =     md5(uniqid(mt_rand(), true));   
        $uuid      =     substr($str,0,12);   
        return $prefix.$uuid; 
    }    
}
?>