lyhzzz 2 年 前
コミット
fb13e26c70

+ 1 - 0
src/main/java/com/fdkankan/tk/controller/RoomController.java

@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.*;
 /**
  *房间管理
  */
+@CrossOrigin
 @RestController
 public class RoomController extends BaseController{
 

+ 2 - 0
src/main/java/com/fdkankan/tk/controller/SceneController.java

@@ -6,6 +6,7 @@ import com.fdkankan.tk.httpClient.client.FdKKClient;
 import com.fdkankan.tk.request.SceneParam;
 import com.fdkankan.tk.service.ISceneService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RestController;
@@ -15,6 +16,7 @@ import javax.annotation.Resource;
 /**
  * 场景数据
  */
+@CrossOrigin
 @RestController
 public class SceneController extends BaseController {
 

+ 2 - 5
src/main/java/com/fdkankan/tk/controller/TencentYunController.java

@@ -4,11 +4,7 @@ package com.fdkankan.tk.controller;
 import com.fdkankan.tk.common.ResultData;
 import com.fdkankan.tk.service.ITencentYunService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 /**
  * <p>
@@ -18,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
  * @author 
  * @since 2022-09-27
  */
+@CrossOrigin
 @RestController
 @RequestMapping("/tencentYun")
 public class TencentYunController {