Преглед изворни кода

工程师协议定时生成

whitefang пре 1 година
родитељ
комит
a21e88044e
1 измењених фајлова са 1 додато и 1 уклоњено
  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;