thinkphp微盘报错  Call to undefined function app index controller curlGet()

跳转验证时报错
 
报错
 
Fatal error Call to undefined function appindexcontrollercurlGet() in wwwwwwrootdajian168.comapplicationindexcontrollerLogin.php on line 681
[1] ErrorException in Login.php line 681
Call to undefined function appindexcontrollercurlGet()
 
解决
common文件 添加
 
 
*get请求获取数据*/
function curlGet($url){
    $ch = curl_init();
    //设置选项,包括URL
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    if (strpos($url, 'https') !== false) {
        curl_setopt($ch, CURLOPT_SSLVERSION, 3);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    }
    //执行并获取HTML文档内容
    $output = curl_exec($ch);
    //释放curl句柄
    curl_close($ch);
    return $output;
}