|
@@ -667,6 +667,8 @@ class Writereport extends Base
|
|
|
curl_setopt($curl, CURLOPT_HEADER, 0);
|
|
|
//设置获取的信息以文件流的形式返回,而不是直接输出。
|
|
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
|
|
+ // 重定向
|
|
|
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
|
|
//执行命令
|
|
|
$data = curl_exec($curl);
|
|
|
//关闭URL请求
|