Przeglądaj źródła

工程师协议定时生成

whitefang 1 rok temu
rodzic
commit
a21e88044e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/common/command/AddAgreementPdf.php

+ 1 - 1
app/common/command/AddAgreementPdf.php

@@ -62,7 +62,7 @@ class AddAgreementPdf extends Command
         $shell_ = 'wkhtmltopdf --page-height 297mm '.$url.' '.'public/'.$path.$pdf;
         $output = [];
         $return_var = 0;
-        exec($shell_ . ' > /dev/null 2>&1', $output, $return_var);
+        \exec($shell_ . ' > /dev/null 2>&1', $output, $return_var);
         if ($return_var === 0) {
             $agreement = MasterWorkerAgree::where('code', $code)->findOrEmpty();
             $agreement->pdf_url = $path.$pdf;