소스 검색

暂存所选

lvhao 3 일 전
부모
커밋
6b02b0d5c6
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      core/CoreApp/models/Model_hualei.php

+ 4 - 1
core/CoreApp/models/Model_hualei.php

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