CURL组件被禁用"); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $connTimeOut); curl_setopt($ch, CURLOPT_TIMEOUT, $timeOut); @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $ret = @curl_exec($ch); @curl_close( $ch ); return $ret; } /*配置游戏圈地址-一定严格按照以下形式地址进行,以免暴露出现游戏圈*/ $url=base64_decode($_GET['q']); //'https://game.weixin.qq.com/cgi-bin/h5/static/community/club_detail.html?appid=wx95a3a4d7c627e0xx&topic_id=36299744#wechat_redirect'; /*配置游戏圈地址-一定严格按照地址进行,以免暴露出现游戏圈*/ // $cfix = 'wx_tic_'.$url; // $c = new cache();$c->dirName = 'cache';$code = $c->readCache($cfix); // if(!$code){ $result = wget_curl("http://game.weixin.qq.com/cgi-bin/comm/openlink?noticeid=90134728&appid=wx95a3a4d7c627e07d&url=".urlencode($url)); preg_match('/weixin:\/\/dl\/business\/\?ticket\=([a-z0-9]+)/i', $result, $ret); $code = @$ret[1]; // $c->writeCache($cfix,$code,20); // } ?> 跳转中

正在打开微信(源码QQ:415-477-158)...

重新打开微信
返回