陈德本 5 years ago
parent
commit
31a38d281d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      site.php

+ 2 - 2
site.php

@@ -43,7 +43,7 @@ foreach ($word as $item) {
     }
     $act_sheet = $spreadsheet->getActiveSheet();
     $result = array_merge($header, $result);
-    $title=$item;
+    $title="关键词:".$item;
     if ($p == 0) {
         $act_sheet->setTitle($title);
         $act_sheet->fromArray($result);
@@ -65,7 +65,7 @@ try {
     header("Content-Type:application/vnd.ms-execl");
     header("Content-Type:application/octet-stream");
     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");
     $writer->save('php://output');
     $spreadsheet->disconnectWorksheets();