소스 검색

bugfix: EK-0524: 结算后台无法下载PDF订单.

kevinElken 7 달 전
부모
커밋
822bc58ee9
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      common/libs/export/BaseExport.php

+ 2 - 4
common/libs/export/BaseExport.php

@@ -836,12 +836,10 @@ ORDER;
 //        }
             $image_file = \Yii::$app->basePath . '/../ngds-logo.jpg';
             $image = file_get_contents($image_file);
-            LoggerTool::debug(['result1' => 111]);
             $pdf->Image('@' . $image, 15, 12, 20, 7, 'JPG');
-            LoggerTool::debug(['result1' => 222]);
             $pdf->writeHTML($context);
-            LoggerTool::debug(['result1' => 333]);
-            $result = $pdf->Output($realFile, 'I');
+
+            $result = $pdf->Output($realFile, 'F');
             LoggerTool::debug(['result' => $result]);
 
             $this->_updateFirst($realFile, 1);