|
@@ -326,15 +326,11 @@ function __construct(){
|
|
|
curl_setopt($ch, CURLOPT_HEADER, 1);
|
|
curl_setopt($ch, CURLOPT_HEADER, 1);
|
|
|
curl_exec($ch);
|
|
curl_exec($ch);
|
|
|
$res = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
|
|
$res = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
|
|
|
- //$this->logic_ding->sendToDing("QQS-251112-050hualei获取运单的url".json_encode($res,JSON_UNESCAPED_UNICODE));
|
|
|
|
|
curl_close($ch);
|
|
curl_close($ch);
|
|
|
if(stripos($res,'.pdf') !== false)
|
|
if(stripos($res,'.pdf') !== false)
|
|
|
{
|
|
{
|
|
|
$g = array('x'=>'1','label'=>$res);
|
|
$g = array('x'=>'1','label'=>$res);
|
|
|
}
|
|
}
|
|
|
- else if(stripos($res,'http') !== false){
|
|
|
|
|
- $g = array('x'=>'1','label'=>$res);
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
$g = array('x'=>'0','Description'=>"获取运单失败,请重试");
|
|
$g = array('x'=>'0','Description'=>"获取运单失败,请重试");
|