瀏覽代碼

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

theo 3 年之前
父節點
當前提交
1c59e3c293
共有 1 個文件被更改,包括 2 次插入0 次删除
  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]);
     }