lvhao пре 3 месеци
родитељ
комит
e8f17d1ecc
1 измењених фајлова са 12 додато и 0 уклоњено
  1. 12 0
      core/CoreApp/controllers/Api.php

+ 12 - 0
core/CoreApp/controllers/Api.php

@@ -840,6 +840,18 @@ class Api extends Start_Controller {
 			}
 			$readid = 1;
 		}
+		else if(date("H",time()) == '20' && date("w",time()) != '0')//特殊快递 有运单 但是打印状态是发货单
+		{
+			if(date("w",time()) == '1')//周一执行:周六晚上9点半——周一晚上9点半 之间出库的
+			{
+			    $where .= "express = '71' and printtype = '2' and waybill != '' and librarytime > '".strtotime(date("Y-m-d 20:00:0",strtotime("-2 day")))."' and librarytime < '".strtotime(date("Y-m-d 20:00:0",time()))."'";
+			}
+			else //周二到周六: 前一天晚上9点半——当天晚上9点半之间出库的
+			{
+				$where .= "express = '71' and printtype = '2' and waybill != '' and librarytime > '".strtotime(date("Y-m-d 20:00:0",strtotime("-1 day")))."' and librarytime < '".strtotime(date("Y-m-d 20:00:0",time()))."'";
+			}
+			$readid = 1;
+		}
 		else
 		{
 			exit;