作者 kgy

驻场结束

... ... @@ -17,7 +17,7 @@ public class CorsFilter implements Filter {
res.addHeader("Access-Control-Allow-Credentials", "true");
res.addHeader("Access-Control-Allow-Origin", "*");
res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT");
res.addHeader("Access-Control-Allow-Headers", "Content-Type,X-CAF-Authorization-Token,sessionToken,X-TOKEN,token");
res.addHeader("Access-Control-Allow-Headers", "Content-Type,X-CAF-Authorization-Token,sessionToken,X-TOKEN");
if (((HttpServletRequest) request).getMethod().equals("OPTIONS")) {
response.getWriter().println("ok");
return;
... ...
... ... @@ -81,11 +81,11 @@ public class ProjectController {
@Autowired
private HeatIngDataMapper heatIngDataMapper;
@GetMapping("getBuildingTypeToIndex/{buildingTypeId}/{projectId}")
@PostMapping("getBuildingTypeToIndex")
@ApiOperation(value = "获取根据建筑类型换取指标")
public RestResponse<?> getBuildingTypeToIndex(
@PathVariable("buildingTypeId") @ApiParam(value = "建筑类型ID", name = "buildingTypeId") String buildingTypeId,
@PathVariable("projectId") @ApiParam(value = "项目ID", name = "projectId") String projectId
@RequestParam("buildingTypeId") @ApiParam(value = "建筑类型ID", name = "buildingTypeId") String buildingTypeId,
@RequestParam("projectId") @ApiParam(value = "项目ID", name = "projectId") String projectId
) {
Map<String,Object> map = synthesize_no_2_6Service.getBuildingTypeToIndex(buildingTypeId,projectId);
return RestResponse.success(map);
... ...
spring:
profiles:
#开发时使用下面注释
active: dev
# active: dev
# 打包时使用下面注释
# active: prod
active: prod
... ...