init
Showing
1 changed file
with
5 additions
and
3 deletions
| ... | @@ -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 | /** | ... | ... |
-
Please register or sign in to post a comment