|
|
@@ -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;
|