|
@@ -1655,6 +1655,14 @@ class Center extends Auth
|
|
|
$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");
|
|
|
}
|
|
|
|