|
@@ -339,6 +339,25 @@ function http_post_json($url, $jsonStr,$token_res)
|
|
|
return json_decode($response,true);
|
|
|
}
|
|
|
|
|
|
+function pdfCurl($file_name)
|
|
|
+{
|
|
|
+ $ch = curl_init();
|
|
|
+ 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");
|
|
|
+ $headers = array();
|
|
|
+ $headers[] = 'Content-Type: application/x-www-form-urlencoded';
|
|
|
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
|
|
+ $result = curl_exec($ch);
|
|
|
+ if (curl_errno($ch)) {
|
|
|
+ echo 'Error:' . curl_error($ch);
|
|
|
+ }
|
|
|
+ curl_close($ch);
|
|
|
+ return $result;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
|
|
|
function getVideoTime($ali_id)
|
|
|
{
|