lvhao 1 месяц назад
Родитель
Сommit
9d7321555a

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

@@ -118,7 +118,7 @@ class Aatest extends Start_Controller {
 		// echo "<pre>";
 		// print_r($res);
 		// die;
-		$this->get3pewaybillid->do_job();
+		$this->job_get3pewaybillid->do_job();
     }
 
 	public function _plcl(){

+ 16 - 0
core/CoreApp/models/Model_itsxb.php

@@ -58,6 +58,7 @@ class Model_itsxb extends Lin_Model {
         return $g;
         
     }
+   
     /**
      * 转化数据格式
      */
@@ -207,4 +208,19 @@ class Model_itsxb extends Lin_Model {
         return $response;
     }
 
+     /**
+     * 获取3pe的订单详情
+     */
+    public function getDetail($number){
+
+        $url = $this->useUrl."getOrderInfo";
+        
+        $params = [
+            'customerOrderNo'=>$number,
+        ]; 
+        $res =  $this->send($url,$params);
+        //$this->logic_ding->sendToDing("3PE发货单详情返回"."【".$number."】".json_encode($params,JSON_UNESCAPED_SLASHES));
+        return $res;
+    }
+
 }

+ 4 - 0
core/CoreApp/models/Model_job_get3pewaybillid.php

@@ -15,6 +15,7 @@ class Model_job_get3pewaybillid extends Lin_Model {
         //快递为3pe  76  出库时间十天前   waybillid 不能为空
         $where = "express = 76 and librarytime >= ".$end_time ." and librarytime <= ".$start_time." ";
         $fields = "id,number,waybill,waybillid,librarytime,express";
+       
         $this->do_dlz($where,$fields);
         $this->do_tt();
         $this->do_amz();
@@ -23,6 +24,9 @@ class Model_job_get3pewaybillid extends Lin_Model {
     //执行对立站的代码
     private function do_dlz($where,$fields){
         $list = $this->fullorder->find_all($where,$fields);
+        echo "<pre>";
+        print_r($list);
+        die;
         foreach($list as $item){
             if(empty($item['waybill'])){
                 $this->do_final($item,"fullorder");