Browse Source

修改phpspreadsheet的命名空间bug

sandm 2 years ago
parent
commit
8d48f6cd50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Enterprise.php

+ 1 - 1
app/admin/controller/Enterprise.php

@@ -310,7 +310,7 @@ class Enterprise extends AdminController {
         $sheet->getDefaultColumnDimension()->setWidth(30);
 
 
-        $sheet->getstyle('A1:O1')->getFill()->setFillType(\PHPExcel_style_Fill::FILL_SOLID)->getStartColor()->setRGB("87CEEB");
+        $sheet->getstyle('A1:O1')->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID)->getStartColor()->setRGB("87CEEB");
 
         $header = ["单位名称", " 统一社会信用代码","产业领域" ,"单位标签"," 所属街道", "单位地址", " 法人代表", " 单位电话", "人才联络员", "人才联络员电话", "人才联络员邮箱", "审核状态", "账号状态", "注册时间","备注"];