|
|
@@ -2030,8 +2030,19 @@ class Systemprint extends Start_Controller {
|
|
|
|
|
|
// 保存文件
|
|
|
file_put_contents($pdf_path . $title . '.pdf', $pdf_content);
|
|
|
-
|
|
|
+ $size = filesize($pdf_path . $title . '.pdf');
|
|
|
+ if($size > 0){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ sleep(1);
|
|
|
+ // 获取PDF内容
|
|
|
+ $pdf_content = file_get_contents($pdf);
|
|
|
+ // 保存文件
|
|
|
+ file_put_contents($pdf_path . $title . '.pdf', $pdf_content);
|
|
|
+ }
|
|
|
return $bctime;
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|