410c867f by yangjianbin

init

1 parent 916c85f9
......@@ -85,7 +85,20 @@ class Work extends CI_Controller
*/
public function detail($id = null)
{
$this->load->view('work/订单详情');
$info = array();
$url = 'http://151.28ms.com:8088/order/detail/950787318907011';
$context = stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => 'Content-type:application/x-www-form-urlencoded',
'content' => http_build_query($info),
'timeout' => 20
)
));
$result = file_get_contents($url, false, $context);
var_dump($result);exit;
$detail = $this->load->view('work/订单详情');
}
/**
......@@ -219,7 +232,7 @@ class Work extends CI_Controller
$start = $_GET['start'] ? $_GET['start'] : 0;
$data['data'] = array();
for ($i = 0; $i < 57; $i++) {
if ($i >= $start && $i < $start + 10){
if ($i >= $start && $i < $start + 10) {
$arr = array(
'id' => $i,
'name' => '小明' . $i
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!