| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | protected function setResult($result) |
||
| 35 | { |
||
| 36 | $result = json_decode($result); |
||
| 37 | if (!$result) { |
||
| 38 | return $this->result(Agent::INFO, 'request failed'); |
||
| 39 | } |
||
| 40 | $this->result(Agent::SUCCESS, $result->resp->respCode === '000000'); |
||
| 41 | $this->result(Agent::CODE, $result->resp->respCode); |
||
| 42 | $this->result(Agent::INFO, json_encode($result->resp)); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |