Explorar o código

修改phpspreadsheet的命名空间bug

sandm %!s(int64=2) %!d(string=hai) anos
pai
achega
8d48f6cd50
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = ["单位名称", " 统一社会信用代码","产业领域" ,"单位标签"," 所属街道", "单位地址", " 法人代表", " 单位电话", "人才联络员", "人才联络员电话", "人才联络员邮箱", "审核状态", "账号状态", "注册时间","备注"];