init
Showing
1 changed file
with
15 additions
and
13 deletions
| ... | @@ -170,21 +170,23 @@ class Work extends CI_Controller | ... | @@ -170,21 +170,23 @@ 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 | if (!$ret->clientUnitOutputVO) { | 173 | $data = array(); |
| 174 | $ret->clientUnitOutputVO = array(); | 174 | if($ret){ |
| 175 | } | 175 | if (!$ret->clientUnitOutputVO) { |
| 176 | if (!$ret->clientContactOutputVOS) { | 176 | $ret->clientUnitOutputVO = array(); |
| 177 | $ret->clientContactOutputVOS = array(); | 177 | } |
| 178 | if (!$ret->clientContactOutputVOS) { | ||
| 179 | $ret->clientContactOutputVOS = array(); | ||
| 180 | } | ||
| 181 | $data = array( | ||
| 182 | 'clientInfoOutputVO'=>$ret->clientInfoOutputVO, | ||
| 183 | 'clientUnitOutputVO'=>$ret->clientUnitOutputVO, | ||
| 184 | 'clientContactOutputVOS'=>$ret->clientContactOutputVOS, | ||
| 185 | 'applyOrderVO'=>$ret->applyOrderVO, | ||
| 186 | 'id'=>$id | ||
| 187 | ); | ||
| 178 | } | 188 | } |
| 179 | 189 | ||
| 180 | $data = array( | ||
| 181 | 'clientInfoOutputVO'=>$ret->clientInfoOutputVO, | ||
| 182 | 'clientUnitOutputVO'=>$ret->clientUnitOutputVO, | ||
| 183 | 'clientContactOutputVOS'=>$ret->clientContactOutputVOS, | ||
| 184 | 'applyOrderVO'=>$ret->applyOrderVO, | ||
| 185 | 'id'=>$id | ||
| 186 | ); | ||
| 187 | |||
| 188 | switch ($state) { | 190 | switch ($state) { |
| 189 | case 1: | 191 | case 1: |
| 190 | $this->load->view('work/审批/资料清单', $data); | 192 | $this->load->view('work/审批/资料清单', $data); | ... | ... |
-
Please register or sign in to post a comment