@@ 69-75 (lines=7) @@ | ||
66 | return $res; |
|
67 | } |
|
68 | ||
69 | protected function setResult($result) |
|
70 | { |
|
71 | $this->result(Agent::INFO, $result); |
|
72 | $result = json_decode($result, true); |
|
73 | $this->result(Agent::SUCCESS, $result['error'] === 0); |
|
74 | $this->result(Agent::CODE, $result['error']); |
|
75 | } |
|
76 | ||
77 | public function sendTemplateSms($to, $tempId, array $data) |
|
78 | { |
@@ 36-42 (lines=7) @@ | ||
33 | $this->setResult($response); |
|
34 | } |
|
35 | ||
36 | protected function setResult($result) |
|
37 | { |
|
38 | $this->result(Agent::INFO, $result); |
|
39 | $result = json_decode($result, true); |
|
40 | $this->result(Agent::SUCCESS, $result['code'] === 0); |
|
41 | $this->result(Agent::CODE, $result['code']); |
|
42 | } |
|
43 | ||
44 | public function sendTemplateSms($to, $tempId, array $data) |
|
45 | { |