e4d3c501 by yangjianbin

init

1 parent 410c867f
...@@ -86,7 +86,7 @@ class Work extends CI_Controller ...@@ -86,7 +86,7 @@ class Work extends CI_Controller
86 public function detail($id = null) 86 public function detail($id = null)
87 { 87 {
88 $info = array(); 88 $info = array();
89 $url = 'http://151.28ms.com:8088/order/detail/950787318907011'; 89 $url = 'http://151.28ms.com:8088/order/detail/'.$id;
90 90
91 $context = stream_context_create(array( 91 $context = stream_context_create(array(
92 'http' => array( 92 'http' => array(
...@@ -97,8 +97,10 @@ class Work extends CI_Controller ...@@ -97,8 +97,10 @@ class Work extends CI_Controller
97 ) 97 )
98 )); 98 ));
99 $result = file_get_contents($url, false, $context); 99 $result = file_get_contents($url, false, $context);
100 var_dump($result);exit; 100 $data = array(
101 $detail = $this->load->view('work/订单详情'); 101 'detail'=>$result
102 );
103 $this->load->view('work/订单详情', $data);
102 } 104 }
103 105
104 /** 106 /**
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!