2bc7d3e7 by 杨建斌

init

1 parent e0227f0d
...@@ -170,13 +170,14 @@ class Work extends CI_Controller ...@@ -170,13 +170,14 @@ class Work extends CI_Controller
170 $result = file_get_contents($url); 170 $result = file_get_contents($url);
171 $json = json_decode($result); 171 $json = json_decode($result);
172 $ret = $json->data; 172 $ret = $json->data;
173 $data = array();
174 if($ret){
173 if (!$ret->clientUnitOutputVO) { 175 if (!$ret->clientUnitOutputVO) {
174 $ret->clientUnitOutputVO = array(); 176 $ret->clientUnitOutputVO = array();
175 } 177 }
176 if (!$ret->clientContactOutputVOS) { 178 if (!$ret->clientContactOutputVOS) {
177 $ret->clientContactOutputVOS = array(); 179 $ret->clientContactOutputVOS = array();
178 } 180 }
179
180 $data = array( 181 $data = array(
181 'clientInfoOutputVO'=>$ret->clientInfoOutputVO, 182 'clientInfoOutputVO'=>$ret->clientInfoOutputVO,
182 'clientUnitOutputVO'=>$ret->clientUnitOutputVO, 183 'clientUnitOutputVO'=>$ret->clientUnitOutputVO,
...@@ -184,6 +185,7 @@ class Work extends CI_Controller ...@@ -184,6 +185,7 @@ class Work extends CI_Controller
184 'applyOrderVO'=>$ret->applyOrderVO, 185 'applyOrderVO'=>$ret->applyOrderVO,
185 'id'=>$id 186 'id'=>$id
186 ); 187 );
188 }
187 189
188 switch ($state) { 190 switch ($state) {
189 case 1: 191 case 1:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!