Ver Fonte

协议pdf生成-debug

whitefang há 1 ano atrás
pai
commit
d217916e4e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/common/command/AddAgreementPdf.php

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

@@ -56,7 +56,7 @@ class AddAgreementPdf extends Command
         $url = $param['url'];
         $pdf = '/'.$code.'.pdf';
         $path = 'uploads/agreement_pdf/'.date('Ymd');
-        if(!file_exists('./'.$path)){
+        if(!file_exists('./public/'.$path)){
             mkdir ('./public/'.$path,0777,true);
         }
         $shell_ = 'wkhtmltopdf --page-height 297mm '.$url.' '.'public/'.$path.$pdf;