lvhao hace 1 semana
padre
commit
53428f1e34
Se han modificado 1 ficheros con 8 adiciones y 6 borrados
  1. 8 6
      core/CoreApp/controllers/Aatest.php

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

@@ -91,14 +91,16 @@ class Aatest extends Start_Controller {
     //定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
     {  
-		die;
+
+	
+		//die;
 		//$str = preg_replace('/\s*\|\s*/', '|', $str);
 		
-		// $list = $this->db->from("fullorder")->order_by('id' ,'desc')->limit(3000,0)->get()->result_array();
-		// foreach($list as $k => $v){
-		// 	$fpdata = preg_replace('/\s*\|\s*/', '|', $v['fpdata']);
-		// 	$this->fullorder->save(['fpdata'=>$fpdata],$v['id']);
-		// }
+		$list = $this->db->from("fullorder")->order_by('id' ,'desc')->limit(3000,0)->get()->result_array();
+		foreach($list as $k => $v){
+			$fpdata = preg_replace('/\s*\|\s*/', '|', $v['fpdata']);
+			$this->fullorder->save(['fpdata'=>$fpdata],$v['id']);
+		}
 		// $this->logic_ding->sendToDing("source != '1' and dlzemail < '1' and");
 		// $product_id = 33204;
 		// $r = $this->db->from("fullorder")->where('extra_price IS NOT NULL', NULL, FALSE)->where('number','ALIP-251105-082')->where("JSON_SEARCH(extra_price, 'one', '$product_id', NULL, '$[*].product_id') IS NOT NULL")->get()->result_array();