|
|
@@ -65,7 +65,8 @@ class PostRecordController extends webApp
|
|
|
if ($result = PostRecordService::make()->submit($this->userId, $params)) {
|
|
|
return showJson(PostRecordService::make()->getError(), true, $result);
|
|
|
} else {
|
|
|
- return showJson(PostRecordService::make()->getError(), false);
|
|
|
+ $errorCode = PostRecordService::make()->getErrorCode();
|
|
|
+ return showJson(PostRecordService::make()->getError(), false,'',$errorCode);
|
|
|
}
|
|
|
} catch (\Exception $exception) {
|
|
|
$error = ['data' => $exception->getTrace(), 'err' => $exception->getMessage()];
|