Przeglądaj źródła

//云尚-FedEx普货专线 如果出库时打印的快递面单超过6天,不允许出库

lvhao 3 miesięcy temu
rodzic
commit
c200bffc15
1 zmienionych plików z 12 dodań i 0 usunięć
  1. 12 0
      core/CoreApp/controllers/Systemfout.php

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

@@ -563,6 +563,18 @@ class Systemfout extends Start_Controller {
 			{
 				$y = $this->$fullorder_name->read($y['merge']);
 			}
+
+			//云尚-FedEx普货专线 如果出库时打印的快递面单超过6天,不允许出库
+			if($y['express'] == 75){
+				$printtime =	$y['printtime'];
+				$set_time = 24 * 60 * 60 * 6;
+				$time = time();
+				if(($time - $set_time) > $printtime){
+					echo json_encode(array('msg'=>"打印超过6天,请联系梦体解决".$y['number'],'success'=>false));exit;
+				}
+			}
+
+
 			$express = $this->express->read($y['express']);
 			if($y['state'] == 216 && $fullorder_name == 'fullordersmt')
 			{