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

+ 2 - 4
core/CoreApp/controllers/Aatest.php

@@ -87,16 +87,14 @@ class Aatest extends Start_Controller {
 		$this->load->_model("Model_check","check");
 		$this->load->_model("Model_logic_express","logic_express");
 		$this->load->_model("Model_job_getcbtwaybillid","job_getcbtwaybillid");
+		$this->load->_model("Model_logic_ding","logic_ding");
     }
 	
 
     //定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
     {   
-		$shop = $this->shop->read(42);
-		$res = $this->apitt->get_detail('576837862514793129',$shop);
-		echo "<pre>";
-		print_r($res);
+		$this->logic_ding->sendToTmp(date("Y-m-d H:i:s")."执行数据。。。");
 		die;
 		if($res['code'] == 0){
 			$data = $res['data'];

+ 3 - 0
core/CoreApp/models/Model_api.php

@@ -356,6 +356,9 @@ function __construct(){
 						if(isset($v['shipping_lines'][0]['code'])){
 							$shippingmethod = $v['shipping_lines'][0]['code'].' '.$v['shipping_lines'][0]['discounted_price'];
 						}
+
+						$this->logic_ding->sendToTmp(json_encode($v));
+
 						$thatDayOrder[] = array(
 						'order_id' => $v['name'],//订单号
 						'product_name' => $productNames,//产品标题

+ 9 - 0
core/CoreApp/models/Model_logic_ding.php

@@ -25,6 +25,15 @@ class Model_logic_ding extends Lin_Model {
             'time'=>time(),      
         ]);
     }
+
+
+    public function sendToTmp($error_msg){
+        $this->db->insert("crowd_zzlinshi",[
+            'content'=>$error_msg,
+            'created_time'=>date("Y-m-d H:i:s"),
+            'time'=>time(),      
+        ]);
+    }
     public $url = "http://a25.wepolicy.cn/errorlog/ding";
    
     // public function sendToDing($error_msg){