|
|
@@ -81,10 +81,10 @@ class AddAgreementPdf extends Command
|
|
|
$url = $param['url'];
|
|
|
$pdf = '/'.$code.'.pdf';
|
|
|
$path = 'uploads/agreement_pdf/'.date('Ymd');
|
|
|
- if(!file_exists('./public/'.$path)){
|
|
|
- mkdir ('./public/'.$path,0777,true);
|
|
|
+ if(!file_exists($path)){
|
|
|
+ mkdir ($path,0777,true);
|
|
|
}
|
|
|
- $shell_ = 'wkhtmltopdf --page-height 297mm '.$url.' '.'public/'.$path.$pdf;
|
|
|
+ $shell_ = 'wkhtmltopdf --page-height 297mm '.$url.' '.$path.$pdf;
|
|
|
$output = [];
|
|
|
$return_var = 0;
|
|
|
\exec($shell_ . ' > /dev/null 2>&1', $output, $return_var);
|