Explorar o código

周六下午工厂异常 紧急修改

longyi hai 5 meses
pai
achega
1cbcef0385

+ 8 - 6
core/CoreApp/controllers/Aatest.php

@@ -67,18 +67,18 @@ class Aatest extends Start_Controller {
 		
 		if($arg == 'fout')
         {
-             $this->_fout();
+             //$this->_fout();
         }else if($arg == 'waybillemail'){
-			$this->_waybillemail();
+			//$this->_waybillemail();
 		}else if($arg == 'getorder'){
-			$this->_getorder();
+			//$this->_getorder();
 		}elseif($arg == 'logistic'){
-			$this->_logistic();
+			//$this->_logistic();
 		}elseif($arg == 'th'){
-		    $this->_th($arg_array);
+		    //$this->_th($arg_array);
 		}else{
 			//$this->_a($arg_array);
-			$this->_mdedit($arg_array);
+			//$this->_mdedit($arg_array);
 		}
     }
     
@@ -484,6 +484,7 @@ class Aatest extends Start_Controller {
 	//修改客户分类
 	public function _mdedit($arg_array)
 	{
+	    die;
 		$user = $this->user->read(10);
 		
 		$post = $this->ll();
@@ -776,6 +777,7 @@ class Aatest extends Start_Controller {
 			{
 				echo json_encode(array('msg'=>'当前国家无法选择'.$warehouse['title'].'!','success'=>false));exit;
 			}
+			
 			    // $kcyz = $this->ck->get_kc($post['state'],$warehouse,$post['shop'],$post['number'],$whlabel,$fpdata);
 			    // if($kcyz['t'] > '0')
 			    // {

+ 9 - 2
core/CoreApp/controllers/Systemfout.php

@@ -513,7 +513,13 @@ class Systemfout extends Start_Controller {
 					echo json_encode(array('msg'=>'出库物流和系统不匹配,请联系梦体解决'.$y['express'].'-3','success'=>false));exit;
 				}
 			}
-			
+			if(stripos($weight,',') !== false){
+               $tmp_arr = explode(",",$weight);
+                $weight = end($tmp_arr);
+                
+                $numweight = (float)$weight;
+                $weight = $numweight."kg";
+            }
 			$numweight = str_replace('kg','',$weight);
 // 			if(($y['express'] == '24' || $y['express'] == '3' || $y['express'] == '28' || $y['express'] == '33' || $y['express'] == '42') && $y['type'] != 6)//杭州除外
 // 			{
@@ -553,8 +559,9 @@ class Systemfout extends Start_Controller {
             //源代码是 
           	//所有快递必须称重		
         	//所有快递必须称重	翔文除外
+            
         	
-        	
+        	$this->logic_ding->sendToDing("检测订单".$y['number']."称重".$numweight."快递公司".$y['express']."-".$weight."[".$numweight."]");
 			if(!in_array($y['express'],[2,39,43,44,45,47,48,49,55,61,63,64,65])){
 				if($weight == '' || $numweight < '0.1' || !is_numeric($numweight))
 				{