正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -100,6 +100,7 @@ class DownloadProject extends Command | @@ -100,6 +100,7 @@ class DownloadProject extends Command | ||
| 100 | $sheet->setCellValue('D1', '终端'); | 100 | $sheet->setCellValue('D1', '终端'); |
| 101 | $sheet->setCellValue('E1', '国家ip'); | 101 | $sheet->setCellValue('E1', '国家ip'); |
| 102 | $sheet->setCellValue('F1', '深度访问页数'); | 102 | $sheet->setCellValue('F1', '深度访问页数'); |
| 103 | + $sheet->setCellValue('G1', '国家'); | ||
| 103 | $rowCount = 2; | 104 | $rowCount = 2; |
| 104 | foreach ($data as $v) { | 105 | foreach ($data as $v) { |
| 105 | $sheet->setCellValue('A' . $rowCount, $v['created_at']); | 106 | $sheet->setCellValue('A' . $rowCount, $v['created_at']); |
| @@ -108,6 +109,7 @@ class DownloadProject extends Command | @@ -108,6 +109,7 @@ class DownloadProject extends Command | ||
| 108 | $sheet->setCellValue('D' . $rowCount, $v['device_text']); | 109 | $sheet->setCellValue('D' . $rowCount, $v['device_text']); |
| 109 | $sheet->setCellValue('E' . $rowCount, $v['ip']); | 110 | $sheet->setCellValue('E' . $rowCount, $v['ip']); |
| 110 | $sheet->setCellValue('F' . $rowCount, $v['depth']); | 111 | $sheet->setCellValue('F' . $rowCount, $v['depth']); |
| 112 | + $sheet->setCellValue('G' . $rowCount, $v['country']); | ||
| 111 | $rowCount++; | 113 | $rowCount++; |
| 112 | } | 114 | } |
| 113 | // 创建一个新的 Excel Writer 对象 | 115 | // 创建一个新的 Excel Writer 对象 |
-
请 注册 或 登录 后发表评论