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