|
|
@@ -1047,6 +1047,9 @@ ORDER;
|
|
|
// 设置字体
|
|
|
$pdf->SetFont('stsongstdlight', '', 10, '', true);
|
|
|
$image = file_get_contents(\Yii::$app->basePath . '/../frontendEle/src/static/img/ngds-logo.jpg');
|
|
|
+ if (!file_exists($image)) {
|
|
|
+ $image = file_get_contents(\Yii::$app->runtimePath . '/uploads/ngds-logo.jpg');
|
|
|
+ }
|
|
|
$pdf->Image('@' . $image, 15, 12, 20, 7, 'JPG');
|
|
|
$pdf->writeHTML($context);
|
|
|
|
|
|
@@ -1311,6 +1314,9 @@ ORDER;
|
|
|
// 设置字体
|
|
|
$pdf->SetFont('stsongstdlight', '', 10, '', true);
|
|
|
$image = file_get_contents(\Yii::$app->basePath . '/../frontendEle/src/static/img/ngds-logo.jpg');
|
|
|
+ if (!file_exists($image)) {
|
|
|
+ $image = file_get_contents(\Yii::$app->runtimePath . '/uploads/ngds-logo.jpg');
|
|
|
+ }
|
|
|
$pdf->Image('@' . $image, 15, 12, 20, 7, 'JPG');
|
|
|
$pdf->writeHTML($context);
|
|
|
|
|
|
@@ -1881,6 +1887,9 @@ ORDER;
|
|
|
// 设置字体
|
|
|
$pdf->SetFont('stsongstdlight', '', 10, '', true);
|
|
|
$image = file_get_contents(\Yii::$app->basePath . '/../frontendEle/src/static/img/ngds-logo.jpg');
|
|
|
+ if (!file_exists($image)) {
|
|
|
+ $image = file_get_contents(\Yii::$app->runtimePath . '/uploads/ngds-logo.jpg');
|
|
|
+ }
|
|
|
$pdf->Image('@' . $image, 15, 12, 20, 7, 'JPG');
|
|
|
$pdf->writeHTML($context);
|
|
|
|