|
@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -49,7 +50,7 @@ public class Scene3dFamilyController extends BaseController {
|
|
*
|
|
*
|
|
* 三维家 拉取场景数据,压缩zip包
|
|
* 三维家 拉取场景数据,压缩zip包
|
|
*/
|
|
*/
|
|
- @Get(value = "/scenecpzip")
|
|
|
|
|
|
+ @GetMapping(value = "/scenecpzip")
|
|
public Result scenecpzip(String sceneNum) throws Exception{
|
|
public Result scenecpzip(String sceneNum) throws Exception{
|
|
String token = getToken();
|
|
String token = getToken();
|
|
if(StringUtils.isEmpty(token)){
|
|
if(StringUtils.isEmpty(token)){
|
|
@@ -95,7 +96,7 @@ public class Scene3dFamilyController extends BaseController {
|
|
*
|
|
*
|
|
* 三维家 拉取场景数据,压缩zip包
|
|
* 三维家 拉取场景数据,压缩zip包
|
|
*/
|
|
*/
|
|
- @RequestMapping(value = "/detail", method = RequestMethod.GET)
|
|
|
|
|
|
+ @GetMapping(value = "/detail")
|
|
public Result detail(String sceneNum,String keys) throws Exception{
|
|
public Result detail(String sceneNum,String keys) throws Exception{
|
|
|
|
|
|
if (!ObjectUtils.isEmpty(secrets) && Arrays.asList(secrets).contains(keys)){
|
|
if (!ObjectUtils.isEmpty(secrets) && Arrays.asList(secrets).contains(keys)){
|