瀏覽代碼

提交测试信息

lvhao 1 天之前
父節點
當前提交
775155eb72
共有 1 個文件被更改,包括 31 次插入4 次删除
  1. 31 4
      core/CoreApp/controllers/Aatest.php

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

@@ -79,6 +79,7 @@ class Aatest extends Start_Controller {
 		$this->load->_model("Model_cne","cne");
 		$this->load->_model("Model_apismt","apismt");
 		$this->load->_model("Model_notice","notice");
+		$this->load->_model("Model_producttitle","producttitle");
     }
 	
 
@@ -103,10 +104,36 @@ class Aatest extends Start_Controller {
 		$express = $this->express->read($fullorder['express']);
 		$notice = $this->notice->find_all("id = 134");
 		echo "<pre>";
-		print_r($fullorder);
-		print_r($shop);
-		print_r($express);
-		print_r($notice);
+		// print_r($fullorder);
+		// print_r($shop);
+		// print_r($express);
+		// print_r($notice);
+		// die;
+		$list = $fullorder;
+		$ProductName = '';
+		if(empty($list['fpdata'])){
+			$st = [];
+		}else{
+			$st =  explode(';',trim($list['fpdata'],';'));
+		}
+		
+		foreach ($st as $v) 
+		{
+			$v =  explode('|',trim($v,'|'));
+			if(isset($v[1]))
+			{
+			    $th = $this->producttitle->get_title($v[1]);
+			    if($th)
+			    {
+				$ProductName .= $th['th'].', ';
+				}
+				else
+				{
+					$ProductName .= $v[1].', ';
+				}
+			}
+		}
+		var_dump($ProductName);
 		die;
 		$go = $this->notice->get_god($fullorder,$shop,$express,$notice[0]);
 		echo "<pre>";