366b7277 by yangjianbin

init

1 parent 98aa9fc5
......@@ -93,15 +93,15 @@ class Work extends CI_Controller
$info = array();
$url = $this->config->item('apiBaseUrl') . 'order/detail/'.$id;
$context = stream_context_create(array(
/*$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);
));*/
$result = file_get_contents($url);
$json = json_decode($result);
$ret = $json->data;
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!