Эх сурвалжийг харах

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

kevinElken 7 сар өмнө
parent
commit
822bc58ee9

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

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