lvhao пре 5 дана
родитељ
комит
01b7d0208e
2 измењених фајлова са 24 додато и 1 уклоњено
  1. 14 1
      core/CoreApp/controllers/Aatest.php
  2. 10 0
      core/CoreApp/models/Model_express_tt.php

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

@@ -92,7 +92,20 @@ class Aatest extends Start_Controller {
     //定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
     {  
-        
+		$info = $this->logic_order->getInfo("number = 'TT-WK-251111-011'");
+		$shop = $this->shop->read($info['shop']);
+		die;
+		$r = $this->expres_tt->getExpressInfo($info,$shop);
+		echo "<pre>";
+		print_r($r);
+		die;
+
+        // $res = "";
+
+		// $r = json_decode($res,true);
+
+		// var_dump($r);
+		// die;
 
         // $list = $this->fullordertt->find_all("express = 83 and printtime >= 1762780009","orderinfo,extra_text");
         // echo "<pre>";

+ 10 - 0
core/CoreApp/models/Model_express_tt.php

@@ -334,5 +334,15 @@ class Model_express_tt extends Lin_Model {
          }
          return $res1;
     }
+    /**
+     * 获取快递承运商
+     */
+    public function getExpressInfo($info,$shop_info){
+        $res = $this->getExpressCompany($info,$shop_info);
+        if($res['x'] == 0){
+            return $res;
+        }
+        return $res;
+    }
 
 }