366b7277 by yangjianbin

init

1 parent 98aa9fc5
...@@ -93,15 +93,15 @@ class Work extends CI_Controller ...@@ -93,15 +93,15 @@ class Work extends CI_Controller
93 $info = array(); 93 $info = array();
94 $url = $this->config->item('apiBaseUrl') . 'order/detail/'.$id; 94 $url = $this->config->item('apiBaseUrl') . 'order/detail/'.$id;
95 95
96 $context = stream_context_create(array( 96 /*$context = stream_context_create(array(
97 'http' => array( 97 'http' => array(
98 'method' => 'POST', 98 'method' => 'POST',
99 'header' => 'Content-type:application/x-www-form-urlencoded', 99 'header' => 'Content-type:application/x-www-form-urlencoded',
100 'content' => http_build_query($info), 100 'content' => http_build_query($info),
101 'timeout' => 20 101 'timeout' => 20
102 ) 102 )
103 )); 103 ));*/
104 $result = file_get_contents($url, false, $context); 104 $result = file_get_contents($url);
105 $json = json_decode($result); 105 $json = json_decode($result);
106 $ret = $json->data; 106 $ret = $json->data;
107 print_r($ret);exit; 107 print_r($ret);exit;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!