songxingwei 2 years ago
parent
commit
ebad41d07a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/data/controller/api/auth/Center.php

+ 4 - 0
app/data/controller/api/auth/Center.php

@@ -1668,7 +1668,9 @@ class Center extends Auth
         $dir = dirname(realpath(dirname($_SERVER['SCRIPT_FILENAME']))) . '/public/';
         $templateProcessor = new TemplateProcessor($dir.'/cgdd.docx');
         $templateProcessor->cloneRow('id',3);
+
         $templateProcessor->setValue('id#1', '1');
+        $templateProcessor->setValue('bh#1', '1');
         $templateProcessor->setValue('name#1', '名称');
         $templateProcessor->setValue('gg#1', '规格');
         $templateProcessor->setValue('num#1', '10');
@@ -1676,6 +1678,7 @@ class Center extends Auth
         $templateProcessor->setValue('allprice#1', '20');
 
         $templateProcessor->setValue('id#2', '1');
+        $templateProcessor->setValue('bh#2', '1');
         $templateProcessor->setValue('name#2', '名称');
         $templateProcessor->setValue('gg#2', '规格');
         $templateProcessor->setValue('num#2', '10');
@@ -1683,6 +1686,7 @@ class Center extends Auth
         $templateProcessor->setValue('allprice#2', '20');
 
         $templateProcessor->setValue('id#3', '1');
+        $templateProcessor->setValue('bh#3', '1');
         $templateProcessor->setValue('name#3', '名称');
         $templateProcessor->setValue('gg#4', '规格');
         $templateProcessor->setValue('num#4', '10');