post(); try { if (ComplaintService::make()->submit($this->userId, $params)) { return showJson(ComplaintService::make()->getError(), true); } else { return showJson(ComplaintService::make()->getError(), false); } } catch (\Exception $exception) { $error = ['data' => $exception->getTrace(), 'err' => $exception->getMessage()]; return showJson(1046, false, $error); } } }