|
@@ -57,13 +57,11 @@ class Application extends Base
|
|
|
$this->error($validate->getError());
|
|
|
}
|
|
|
$application = InspectionService::getApplicationDetail($applicationId, $this->auth->id);
|
|
|
- if (empty($application)) {
|
|
|
- $this->error('申请记录不存在');
|
|
|
- }
|
|
|
|
|
|
- $application->append(['audit_status_text', 'apply_time_text', 'audit_time_text', 'province_name', 'city_name', 'district_name']);
|
|
|
- $application->hidden(['createtime', 'updatetime', 'deletetime']);
|
|
|
-
|
|
|
+ if($application){
|
|
|
+ $application->append(['audit_status_text', 'apply_time_text', 'audit_time_text', 'province_name', 'city_name', 'district_name']);
|
|
|
+ $application->hidden(['createtime', 'updatetime', 'deletetime']);
|
|
|
+ }
|
|
|
$this->success('获取成功', $application);
|
|
|
|
|
|
}
|