e4d3c501 by yangjianbin

init

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