@@ 350-356 (lines=7) @@ | ||
347 | } catch (Exception $e) { |
|
348 | $this->_error = $e->getMessage(); |
|
349 | } |
|
350 | if ($this->_request->isJsonApiCall()) { |
|
351 | if (strlen($this->_error)) { |
|
352 | $this->_return_message(1, $this->_error); |
|
353 | } else { |
|
354 | $this->_return_message(0, $dataid); |
|
355 | } |
|
356 | } |
|
357 | } |
|
358 | ||
359 | /** |
|
@@ 383-389 (lines=7) @@ | ||
380 | $this->_error = $e->getMessage(); |
|
381 | } |
|
382 | ||
383 | if ($this->_request->isJsonApiCall()) { |
|
384 | if (strlen($this->_error)) { |
|
385 | $this->_return_message(1, $this->_error); |
|
386 | } else { |
|
387 | $this->_return_message(0, $dataid, json_decode($this->_data, true)); |
|
388 | } |
|
389 | } |
|
390 | } |
|
391 | ||
392 | /** |