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