|
@@ -1651,8 +1651,22 @@ class Center extends Auth
|
|
|
|
|
|
|
|
|
public function ccc(){
|
|
|
+// $dir = dirname(realpath(dirname($_SERVER['SCRIPT_FILENAME']))) . '/public/';
|
|
|
+// $templateProcessor = new TemplateProcessor($dir.'/wxdd.docx');
|
|
|
+// $templateProcessor->setValue('order_no','1234');
|
|
|
+// $templateProcessor->setValue('date','2023-02-20 15:05:50');
|
|
|
+// $templateProcessor->setValue('fbz','张三');
|
|
|
+// $templateProcessor->setValue('jdf','李四');
|
|
|
+// $templateProcessor->setValue('fbzphone','15800000000');
|
|
|
+// $templateProcessor->setValue('jdfphone','15800000001');
|
|
|
+// $templateProcessor->setValue('address','藕粉色大后方胡搜凤凰山佛山房');
|
|
|
+// $templateProcessor->setValue('time','2023-02-20 15:10:00');
|
|
|
+// $templateProcessor->setValue('desc','维修单维修单');
|
|
|
+// $templateProcessor->setValue('price','100');
|
|
|
+// $templateProcessor->saveAs($dir."b.docx");
|
|
|
+
|
|
|
$dir = dirname(realpath(dirname($_SERVER['SCRIPT_FILENAME']))) . '/public/';
|
|
|
- $templateProcessor = new TemplateProcessor($dir.'/wxdd.docx');
|
|
|
+ $templateProcessor = new TemplateProcessor($dir.'/cgdd.docx');
|
|
|
$templateProcessor->setValue('order_no','1234');
|
|
|
$templateProcessor->setValue('date','2023-02-20 15:05:50');
|
|
|
$templateProcessor->setValue('fbz','张三');
|