wupengfei 2 năm trước cách đây
mục cha
commit
c42a4ada03
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      application/common.php

+ 1 - 1
application/common.php

@@ -345,7 +345,7 @@ function pdfCurl($file_name)
     curl_setopt($ch, CURLOPT_URL, 'http://101.132.128.55:9999/v1/pdf/upload');
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($ch, CURLOPT_POST, 1);
-    curl_setopt($ch, CURLOPT_POSTFIELDS, "file=$file_name");
+    curl_setopt($ch, CURLOPT_POSTFIELDS, ['file'=>$file_name]);
     $headers = array();
     $headers[] = 'Content-Type: application/x-www-form-urlencoded';
     curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);