init
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment