Browse Source

yuanjiajia test

master
yuanjiajia 2 years ago
parent
commit
28f410f07e
  1. 4
      composer.json
  2. 25
      examples/renderTest.php

4
composer.json

@ -15,5 +15,7 @@
} }
], ],
"minimum-stability": "dev", "minimum-stability": "dev",
"require": {}
"require": {
"guzzlehttp/guzzle": "~6.0"
}
} }

25
examples/renderTest.php

@ -0,0 +1,25 @@
<?php
namespace Blobt\Luxcore\scene;
use GuzzleHttp\Client;
include dirname(dirname(__FILE__)) . "/vendor/autoload.php";
// 创建一个场景
// $scene = new Scene();
$client = new Client();
$response = $client->get("deep3d.backend-api.dev.com/test/render-task");
// echo $response->getBody()->getContents();
$resStr = $response->getBody()->getContents();
$resContents = json_decode($resStr);
print_r($resContents->data->scene->model->childsParams[0]);
?>
Loading…
Cancel
Save