|
@@ -43,7 +43,7 @@ foreach ($word as $item) {
|
|
|
}
|
|
}
|
|
|
$act_sheet = $spreadsheet->getActiveSheet();
|
|
$act_sheet = $spreadsheet->getActiveSheet();
|
|
|
$result = array_merge($header, $result);
|
|
$result = array_merge($header, $result);
|
|
|
- $title=$item;
|
|
|
|
|
|
|
+ $title="关键词:".$item;
|
|
|
if ($p == 0) {
|
|
if ($p == 0) {
|
|
|
$act_sheet->setTitle($title);
|
|
$act_sheet->setTitle($title);
|
|
|
$act_sheet->fromArray($result);
|
|
$act_sheet->fromArray($result);
|
|
@@ -65,7 +65,7 @@ try {
|
|
|
header("Content-Type:application/vnd.ms-execl");
|
|
header("Content-Type:application/vnd.ms-execl");
|
|
|
header("Content-Type:application/octet-stream");
|
|
header("Content-Type:application/octet-stream");
|
|
|
header("Content-Type:application/download");
|
|
header("Content-Type:application/download");
|
|
|
- header('Content-Disposition:attachment;filename="site数据.xlsx"');
|
|
|
|
|
|
|
+ header('Content-Disposition:attachment;filename="site数据-['.$domain.'].xlsx"');
|
|
|
header("Content-Transfer-Encoding:binary");
|
|
header("Content-Transfer-Encoding:binary");
|
|
|
$writer->save('php://output');
|
|
$writer->save('php://output');
|
|
|
$spreadsheet->disconnectWorksheets();
|
|
$spreadsheet->disconnectWorksheets();
|