Browse Source

Merge branch 'master' of http://18.167.157.193:1026/guanli/ngds into feature/theo-translate

theo 3 years ago
parent
commit
1c59e3c293
1 changed files with 2 additions and 0 deletions
  1. 2 0
      frontendApi/modules/v1/controllers/ShopController.php

+ 2 - 0
frontendApi/modules/v1/controllers/ShopController.php

@@ -525,6 +525,8 @@ ORDER;
         $path = '/pdfs/' . $file_name;
         $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]);
     }