Sfoglia il codice sorgente

发货单但是又运单好的云尚快线 同步物流邮件

lvhao 3 mesi fa
parent
commit
733e7d34c8
1 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 9 1
      core/CoreApp/controllers/Api.php

+ 9 - 1
core/CoreApp/controllers/Api.php

@@ -989,6 +989,10 @@ class Api extends Start_Controller {
 		{
 			$wid = 2;
 		}
+		else if(date("H",time()) == '21' && date("i",time()) > '20' && date("i",time()) < '39')//其他快递
+		{
+			$wid = 3;
+		}
 		else
 		{
 			exit;
@@ -1068,7 +1072,11 @@ class Api extends Start_Controller {
 			**/
 			else if($wid == 2 && stripos($notice['express'],',1,') !== false)
 			{
-			 	$where = "express != '2' and express != '63' and  express != '64' and printtype = '1' and waybill != '' and librarytime > '".strtotime(date("Y-m-d 20:00:0",strtotime("-6 day")))."' and librarytime < '".strtotime(date("Y-m-d 20:00:0",time()))."'";//4
+			 	$where = "express != '2' and express != '63' and  express != '64'  and printtype = '1' and waybill != '' and librarytime > '".strtotime(date("Y-m-d 20:00:0",strtotime("-6 day")))."' and librarytime < '".strtotime(date("Y-m-d 20:00:0",time()))."'";//4
+			}
+			else if($wid == 3 && stripos($notice['express'],',1,') !== false)
+			{
+			 	$where = "express = '71'  and printtype = '2' and waybill != '' and librarytime > '".strtotime(date("Y-m-d 20:00:0",strtotime("-6 day")))."' and librarytime < '".strtotime(date("Y-m-d 20:00:0",time()))."'";//4
 			}
 			else
 			{