wupengfei 2 years ago
parent
commit
0574019311
2 changed files with 4 additions and 3 deletions
  1. 1 1
      .idea/workspace.xml
  2. 3 2
      application/common.php

+ 1 - 1
.idea/workspace.xml

@@ -270,7 +270,7 @@
       <workItem from="1679532313623" duration="31448000" />
       <workItem from="1679619041819" duration="29965000" />
       <workItem from="1679706054685" duration="19035000" />
-      <workItem from="1679878121007" duration="11231000" />
+      <workItem from="1679878121007" duration="11273000" />
     </task>
     <servers />
   </component>

+ 3 - 2
application/common.php

@@ -345,8 +345,9 @@ function pdfCurl($file_name)
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($ch, CURLOPT_POST, 1);
 //    curl_setopt($ch, CURLOPT_POSTFIELDS, 'file=@'.$file_name);
-    var_dump( ['file'=>new \CURLFile(realpath($file_name))]);die();
-    curl_setopt($ch, CURLOPT_POSTFIELDS, ['file'=>new \CURLFile(realpath($file_name))]);
+    //var_dump( ['file'=>new \CURLFile(realpath($file_name))]);die();
+  //  curl_setopt($ch, CURLOPT_POSTFIELDS, ['file'=>new \CURLFile(realpath($file_name))]);
+    curl_setopt($ch, CURLOPT_POSTFIELDS, ['file'=>$file_name]);
     $headers = array();
 
 //    $headers[] = 'Content-Type: application/x-www-form-urlencoded';