songxingwei 3 лет назад
Родитель
Сommit
ef73346f90
1 измененных файлов с 0 добавлено и 6 удалено
  1. 0 6
      application/api/controller/Index.php

+ 0 - 6
application/api/controller/Index.php

@@ -164,12 +164,6 @@ class Index extends Api
         $tmp->setValue('username',utf8_decode('李四'));//替换变量
         $tmp->saveAs($_SERVER['DOCUMENT_ROOT']."/upload/123.docx");
 
-//        $phpWord=new \PhpOffice\PhpWord\PhpWord();
-//        $tmp= new \PhpOffice\PhpWord\TemplateProcessor($fileName);//打开模板
-//        $tmp->setValue('username','李四');//替换变量name
-//        $title= '22222';
-//        $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($tmp, 'Word2007');
-//        $objWriter->save($_SERVER['DOCUMENT_ROOT']."/upload/".$title.'.docx');
         die;
 
         $path= 'mb.html';