wupengfei il y a 2 ans
Parent
commit
ba729b4c2b
2 fichiers modifiés avec 7 ajouts et 4 suppressions
  1. 5 2
      .idea/workspace.xml
  2. 2 2
      application/common.php

+ 5 - 2
.idea/workspace.xml

@@ -1,7 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ChangeListManager">
-    <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="" />
+    <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common.php" afterDir="false" />
+    </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -267,7 +270,7 @@
       <workItem from="1679532313623" duration="31448000" />
       <workItem from="1679619041819" duration="29965000" />
       <workItem from="1679706054685" duration="19035000" />
-      <workItem from="1679878121007" duration="11896000" />
+      <workItem from="1679878121007" duration="11944000" />
     </task>
     <servers />
   </component>

+ 2 - 2
application/common.php

@@ -344,8 +344,8 @@ function pdfCurl($file_name)
     curl_setopt($ch, CURLOPT_URL, 'https://pdf.gyxqcdz.com/v1/pdf/upload');
     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=@'.$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();