소스 검색

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

kevinElken 7 달 전
부모
커밋
50943322ce
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      frontendApi/modules/v1/controllers/ShopController.php

+ 3 - 3
frontendApi/modules/v1/controllers/ShopController.php

@@ -1061,7 +1061,7 @@ ORDER;
         $path = 'pdfs/' . $file_name;
         $pdf->Output(Yii::$app->basePath . '/web/' . $path, 'F');
 
-        @exec('chmod -R 777 /' . Yii::$app->basePath . '/web' . $path);
+        exec('chmod -R 777 /' . Yii::$app->basePath . '/web' . $path);
 
         return static::notice(['fileUrl' => $path, 'targetName' => $file_name]);
     }
@@ -1329,7 +1329,7 @@ ORDER;
         $file_name = $orderSn . '.pdf';
         $path = 'pdfs/' . $file_name;
         $pdf->Output(Yii::$app->basePath . '/web/' . $path, 'F');
-        @exec('chmod -R 777 /' . Yii::$app->basePath . '/web' . $path);
+        exec('chmod -R 777 /' . Yii::$app->basePath . '/web' . $path);
 
         return static::notice(['fileUrl' => $path, 'targetName' => $file_name]);
     }
@@ -1905,7 +1905,7 @@ ORDER;
         $file_name = $orderSn . '.pdf';
         $path = 'pdfs/' . $file_name;
         $pdf->Output(Yii::$app->basePath . '/web/' . $path, 'F');
-        @exec('chmod -R 777 /' . Yii::$app->basePath . '/web' . $path);
+        exec('chmod -R 777 /' . Yii::$app->basePath . '/web' . $path);
 
         return static::notice(['fileUrl' => $path, 'targetName' => $file_name]);
     }