Browse Source

提交数据

lvhao 3 months ago
parent
commit
5a2bbfd688
1 changed files with 3 additions and 14 deletions
  1. 3 14
      core/CoreApp/models/Model_cne.php

+ 3 - 14
core/CoreApp/models/Model_cne.php

@@ -572,24 +572,13 @@ function __construct(){
 			$content = date('Y-m-d H',time()).'-暂无记录';
 			return array('content'=>$content,'f'=>0);
 		}
-		$exstate = 0;
+		$exstate =0;
 		foreach($res['returnDatas']['0']['items'] as $v)
 		{
-			if($v['info'] == 'Delivered')
-			{
+			if((stripos($v['info'],'Delivered') !== false) || (stripos($v['info'],'delivered') !== false) ){
 				$exstate = 6;
 				break;
-			}
-			else if(stripos($v['location'],$data['country']) !== false)
-			{
-				$exstate = 4;
-				break;
-			}
-			else if($v['info'] == '订单信息已收到')
-			{
-				$exstate = 2;
-				break;
-			}
+			}			
 		}
 
 		$xq = "";