|
@@ -80,7 +80,7 @@ class Glendale extends BIMAbstract
|
|
|
if (!empty($append)) {
|
|
|
$input = array_merge($input, $append);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return [
|
|
|
'input' => json_encode($input)
|
|
|
];
|
|
@@ -322,17 +322,23 @@ class Glendale extends BIMAbstract
|
|
|
*/
|
|
|
public function getModel3DViews(string $lightweightName): array
|
|
|
{
|
|
|
+ $result = [];
|
|
|
+
|
|
|
if (empty($lightweightName)) {
|
|
|
- return [];
|
|
|
+ return $result;
|
|
|
}
|
|
|
|
|
|
- $res = Client::getInstance()->get('/api/app/model/model3DViews', [
|
|
|
- 'LightweightName' => $lightweightName
|
|
|
- ]);
|
|
|
+ try {
|
|
|
+ $res = Client::getInstance()->get('/api/app/model/model3DViews', [
|
|
|
+ 'LightweightName' => $lightweightName
|
|
|
+ ]);
|
|
|
|
|
|
- foreach ($res['datas'] as $data) {
|
|
|
- $result[] = $this->replaceUrlToHttps($data, ['accessAddress']);
|
|
|
+ foreach ($res['datas'] as $data) {
|
|
|
+ $result[] = $this->replaceUrlToHttps($data, ['accessAddress']);
|
|
|
+ }
|
|
|
+ } catch (\Throwable $th) {
|
|
|
}
|
|
|
+
|
|
|
return $result;
|
|
|
}
|
|
|
|