|
|
@@ -1059,8 +1059,8 @@ ORDER;
|
|
|
|
|
|
$file_name = $orderSn . '.pdf';
|
|
|
$path = 'pdfs/' . $file_name;
|
|
|
- $pdf->Output(Yii::$app->basePath . '/web/' . $path, 'F');
|
|
|
-
|
|
|
+ $pdf = $pdf->Output(Yii::$app->basePath . '/web/' . $path, 'F');
|
|
|
+ LoggerTool::debug(['pdf', $pdf]);
|
|
|
exec('chmod -R 777 /' . Yii::$app->basePath . '/web' . $path);
|
|
|
|
|
|
return static::notice(['fileUrl' => $path, 'targetName' => $file_name]);
|
|
|
@@ -1328,7 +1328,8 @@ ORDER;
|
|
|
|
|
|
$file_name = $orderSn . '.pdf';
|
|
|
$path = 'pdfs/' . $file_name;
|
|
|
- $pdf->Output(Yii::$app->basePath . '/web/' . $path, 'F');
|
|
|
+ $pdf = $pdf->Output(Yii::$app->basePath . '/web/' . $path, 'F');
|
|
|
+ LoggerTool::debug(['pdf', $pdf]);
|
|
|
exec('chmod -R 777 /' . Yii::$app->basePath . '/web' . $path);
|
|
|
|
|
|
return static::notice(['fileUrl' => $path, 'targetName' => $file_name]);
|
|
|
@@ -1904,7 +1905,8 @@ ORDER;
|
|
|
|
|
|
$file_name = $orderSn . '.pdf';
|
|
|
$path = 'pdfs/' . $file_name;
|
|
|
- $pdf->Output(Yii::$app->basePath . '/web/' . $path, 'F');
|
|
|
+ $pdf = $pdf->Output(Yii::$app->basePath . '/web/' . $path, 'F');
|
|
|
+ LoggerTool::debug(['pdf', $pdf]);
|
|
|
exec('chmod -R 777 /' . Yii::$app->basePath . '/web' . $path);
|
|
|
|
|
|
return static::notice(['fileUrl' => $path, 'targetName' => $file_name]);
|