|
@@ -8,33 +8,32 @@
|
|
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
use App\Http\Controllers\Controller;
|
|
|
+use App\Services\BimView\BimViewService;
|
|
|
use GuzzleHttp\Client;
|
|
|
use Illuminate\Support\Facades\Http;
|
|
|
|
|
|
class BimController extends Controller
|
|
|
{
|
|
|
- public function bimView(){
|
|
|
-
|
|
|
- $http=Http::accept('application/json')->withHeaders([
|
|
|
- // 其他必要的头部信息
|
|
|
- 'ClientId' => 'test',
|
|
|
- 'SecretKey' => 'tROsEGDQ9zp7qEGJCtb5tQ==',
|
|
|
- 'UserId' => '3a095fd2-4134-8db1-5527-f950a48174b7',
|
|
|
- // 注意:对于 GET 请求,通常不需要 Content-Type,除非你发送请求体
|
|
|
- ]);
|
|
|
- $getProjectResponse=$http->post('http://106.52.199.205:9012/blackHole3D/project/list',[
|
|
|
- "projId"=>'3a126eb4-979a-842c-70e6-3813f002cca1'
|
|
|
- ]);
|
|
|
-
|
|
|
- $getTreeByIdResponse=$http->post('http://106.52.199.205:9012/blackHole3D/project/modelTree/getTreeById',[
|
|
|
- "projId"=>'3a126eb4-979a-842c-70e6-3813f002cca1'
|
|
|
- ]);
|
|
|
-
|
|
|
- $getTreeByIdResponse=$http->post('http://106.52.199.205:9012/blackHole3D/project/modelFile/create',[
|
|
|
- "projId"=>'3a126eb4-979a-842c-70e6-3813f002cca1'
|
|
|
- ]);
|
|
|
-
|
|
|
- dd($getTreeByIdResponse->json());
|
|
|
+ public function bimView(BimViewService $service){
|
|
|
+
|
|
|
+// $http=Http::accept('application/json')->withHeaders([
|
|
|
+// // 其他必要的头部信息
|
|
|
+// 'ClientId' => 'test',
|
|
|
+// 'SecretKey' => 'tROsEGDQ9zp7qEGJCtb5tQ==',
|
|
|
+// 'UserId' => '3a095fd2-4134-8db1-5527-f950a48174b7',
|
|
|
+// // 注意:对于 GET 请求,通常不需要 Content-Type,除非你发送请求体
|
|
|
+// ]);
|
|
|
+//
|
|
|
+// $getTreeByIdResponse=$http->post('http://106.52.199.205:9012/blackHole3D/project/modelTree/getTreeById',[
|
|
|
+// "projId"=>'3a126eb4-979a-842c-70e6-3813f002cca1'
|
|
|
+// ]);
|
|
|
+//
|
|
|
+// $getTreeByIdResponse=$http->post('http://106.52.199.205:9012/blackHole3D/project/modelFile/create',[
|
|
|
+// "projId"=>'3a126eb4-979a-842c-70e6-3813f002cca1'
|
|
|
+// ]);
|
|
|
+
|
|
|
+ $response=$service->bimView();
|
|
|
+ dd($response->json());
|
|
|
|
|
|
return ;
|
|
|
|