init
Showing
1 changed file
with
15 additions
and
2 deletions
| ... | @@ -85,7 +85,20 @@ class Work extends CI_Controller | ... | @@ -85,7 +85,20 @@ class Work extends CI_Controller |
| 85 | */ | 85 | */ |
| 86 | public function detail($id = null) | 86 | public function detail($id = null) |
| 87 | { | 87 | { |
| 88 | $this->load->view('work/订单详情'); | 88 | $info = array(); |
| 89 | $url = 'http://151.28ms.com:8088/order/detail/950787318907011'; | ||
| 90 | |||
| 91 | $context = stream_context_create(array( | ||
| 92 | 'http' => array( | ||
| 93 | 'method' => 'POST', | ||
| 94 | 'header' => 'Content-type:application/x-www-form-urlencoded', | ||
| 95 | 'content' => http_build_query($info), | ||
| 96 | 'timeout' => 20 | ||
| 97 | ) | ||
| 98 | )); | ||
| 99 | $result = file_get_contents($url, false, $context); | ||
| 100 | var_dump($result);exit; | ||
| 101 | $detail = $this->load->view('work/订单详情'); | ||
| 89 | } | 102 | } |
| 90 | 103 | ||
| 91 | /** | 104 | /** |
| ... | @@ -219,7 +232,7 @@ class Work extends CI_Controller | ... | @@ -219,7 +232,7 @@ class Work extends CI_Controller |
| 219 | $start = $_GET['start'] ? $_GET['start'] : 0; | 232 | $start = $_GET['start'] ? $_GET['start'] : 0; |
| 220 | $data['data'] = array(); | 233 | $data['data'] = array(); |
| 221 | for ($i = 0; $i < 57; $i++) { | 234 | for ($i = 0; $i < 57; $i++) { |
| 222 | if ($i >= $start && $i < $start + 10){ | 235 | if ($i >= $start && $i < $start + 10) { |
| 223 | $arr = array( | 236 | $arr = array( |
| 224 | 'id' => $i, | 237 | 'id' => $i, |
| 225 | 'name' => '小明' . $i | 238 | 'name' => '小明' . $i | ... | ... |
-
Please register or sign in to post a comment