longyi há 3 meses atrás
pai
commit
0624ab840f

+ 3 - 3
core/CoreApp/controllers/Aac.php

@@ -27,13 +27,13 @@ class Aac extends Start_Controller {
 	//定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
     {
-		//$this->dosku();
+		$this->dosku();
 		//$this->tj();
-		$this->doTest();
+		//$this->doTest();
     }
 
 	public function dosku(){
-		$sku = "9A-LY031-#PT1B/27-OW-13*4W-18-180%-M-RTG-SideP";
+		$sku = "QV-LSDPPT16";
 		$tc = $this->typeclass->find_all();
 		$typeclass = [];
 		foreach ($tc as $v)

+ 14 - 10
core/CoreApp/controllers/Ac.php

@@ -168,7 +168,7 @@ class Ac extends Start_Controller {
 		$fullorder['time'] = date('Y-m-d',time());
 		$fullorder['times'] = date('Y-m-d H:i',time());
 		$declara_info = $this->customsdeclaration->find("ename like '%".trim($fullorder['sbpm'])."%' ","*");
-	    var_dump($declara_info);
+	    //var_dump($declara_info);
 		$sbbm = "";
 		if(empty($declara_info)){
 			$sbbm = "";
@@ -208,9 +208,9 @@ class Ac extends Start_Controller {
 		}
 		$fullorder['pt'] = $pt;
 		$fullorder['printnumber'] += 2;
-		echo "<pre>";
-		var_dump($fullorder['sbbm']);
-		die;
+// 		echo "<pre>";
+// 		var_dump($fullorder['sbbm']);
+// 		die;
 		//$fullorder['printcode'] = 'HUALEIXW-FEDEX';
 		//$fullorder['sbbm']= ($fullorder['sbpm'] == 'Hair Sample') ? 67042000 : 67041100;
 		//$fullorder['sbbm']= 4202320000;//($fullorder['sbpm'] == 'Hair Sample') ? 67042000 : 67041100;
@@ -233,12 +233,16 @@ class Ac extends Start_Controller {
 // 		$fullorder['js'] = 2;
 // 		$fullorder['bx'] = 110;
 		//$fullorder['qm'] = 1;
-// 		$fullorder['printcode'] = 'usps_priority';
-// 		$b  = $this->cne->get_data($fullorder);
-
-        echo "<pre>";
-		$b = $this->fedexv1->get_data($fullorder);
-		var_dump($b);
+		echo "<pre>";
+		var_dump($fullorder['printcode']);
+		
+		//$fullorder['printcode'] = 'usps_priority';
+		$b  = $this->cne->get_data($fullorder);
+		print_r($b);
+        die;
+//         echo "<pre>";
+// 		$b = $this->fedexv1->get_data($fullorder);
+// 		var_dump($b);
 		//echo $fullorder['zzl'];
 	//	echo  "<pre>";
 	//	var_dump($fullorder);

+ 1 - 1
core/CoreApp/controllers/Boss.php

@@ -222,7 +222,7 @@ class Boss extends Start_Controller
 			}
 			if ($y['type'] != 7 && $y['waybill'] != '' && $y['printtype'] == '1') {
 				$y['waybill'] = trim($y['waybill'], ' ');
-				if (strlen($y['waybill']) == 12 && $y['express'] != 24 && $y['express'] != 31 && $y['express'] != 38 && $y['express'] != 41 && $y['express'] != 6 && $y['express'] != 43 && $y['express'] != 48 && $y['express'] != 50) {
+				if (strlen($y['waybill']) == 12 && $y['express'] != 24 && $y['express'] != 31 && $y['express'] != 38 && $y['express'] != 41 && $y['express'] != 6 && $y['express'] != 43 && $y['express'] != 48 && $y['express'] != 50 && $y['express'] != 71) {
 					echo json_encode(array('msg' => '出库物流和系统不匹配,请联系梦体解决' . $y['express'] . '-1', 'success' => false));
 					exit;
 				} else if (strlen($y['waybill']) == 10 && $y['express'] != 1 && $y['express'] != 37 && $y['express'] != 49 && $y['express'] != 42) {

+ 2 - 1
core/CoreApp/models/Model_cne.php

@@ -104,8 +104,9 @@ function __construct(){
         curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query(array('json'=>$count)));
 		$res = curl_exec($ch);
 		curl_close($ch);
-		//$this->logic_ding->sendToDing("云尚快递报文信息【".$count."】返回参数[".$res."]");
+		$this->logic_ding->sendToDing("云尚快递报文信息【".$count."】返回参数[".$res."]");
 		$res = json_decode($res,true);
+		
 		if(!isset($res['returnDatas'][0]['corpBillid']))
 		{
 			$g = array('x'=>'0','Description'=>$res['returnDatas'][0]['message'],'cs'=>$count);

+ 1 - 0
core/CoreApp/models/Model_hualei.php

@@ -198,6 +198,7 @@ function __construct(){
 			$resultData['message'] = urldecode($resultData['message']);
 			$g = array('x'=>'0','Description'=>$resultData['message']);
 		}
+		$this->logic_ding->sendToDing("hualei发货单回执的pdf报文".json_encode($g));
 		return $g;exit;
 	}