|
@@ -195,15 +195,21 @@ class FileController extends Controller
|
|
|
}
|
|
|
|
|
|
$bimFile = $file->bimFile;
|
|
|
- $result = BIMFactory::make($bimFile->bim_driver)->viewDataSetModel([
|
|
|
- $bimFile->bim_data_set_id
|
|
|
- ]);
|
|
|
+ if($bimFile->convert_status===5){
|
|
|
+ dd(1);
|
|
|
+ $result = BIMFactory::make($bimFile->bim_driver)->viewDataSetModel([
|
|
|
+ $bimFile->bim_data_set_id
|
|
|
+ ]);
|
|
|
+
|
|
|
+ return $this->success([
|
|
|
+ 'data' => [
|
|
|
+ 'bim_driver' => $bimFile->bim_driver,
|
|
|
+ 'bim_view' => $result
|
|
|
+ ]
|
|
|
+ ]);
|
|
|
+ }else{
|
|
|
+ return $this->badRequest("BIM is in the process of conversion. Please wait a moment");
|
|
|
+ }
|
|
|
|
|
|
- return $this->success([
|
|
|
- 'data' => [
|
|
|
- 'bim_driver' => $bimFile->bim_driver,
|
|
|
- 'bim_view' => $result
|
|
|
- ]
|
|
|
- ]);
|
|
|
}
|
|
|
}
|