Commit d5a6ed7d authored by wzp's avatar wzp

修改bug

parent adf431c2
...@@ -142,7 +142,7 @@ public class ChinaMobileRestApiController extends BaseController { ...@@ -142,7 +142,7 @@ public class ChinaMobileRestApiController extends BaseController {
@ApiOperation(value = "机顶盒激活状态查询", notes = "机顶盒激活状态查询") @ApiOperation(value = "机顶盒激活状态查询", notes = "机顶盒激活状态查询")
@GetMapping("/equitment/activity") @GetMapping("/equitment/activity")
@RequiresAuthentication //@RequiresPermissions("/equitment/activity/") //@RequiresAuthentication //@RequiresPermissions("/equitment/activity/")
public Map<String, Object> getActivity(@RequestParam(required = true) String mac) { public Map<String, Object> getActivity(@RequestParam(required = true) String mac) {
List<TBoxOperation> list = new ArrayList<>(); List<TBoxOperation> list = new ArrayList<>();
try { try {
...@@ -243,6 +243,7 @@ public class ChinaMobileRestApiController extends BaseController { ...@@ -243,6 +243,7 @@ public class ChinaMobileRestApiController extends BaseController {
@ApiOperation(value = "获取单个成员信息") @ApiOperation(value = "获取单个成员信息")
@GetMapping(value = "/user/getUserInfo") @GetMapping(value = "/user/getUserInfo")
@RequiresAuthentication
public ResponseEntity<JSONObject> getById(String userId) { public ResponseEntity<JSONObject> getById(String userId) {
JSONObject resultMap = new JSONObject(true); JSONObject resultMap = new JSONObject(true);
try { try {
...@@ -278,6 +279,7 @@ public class ChinaMobileRestApiController extends BaseController { ...@@ -278,6 +279,7 @@ public class ChinaMobileRestApiController extends BaseController {
} }
@RequestMapping(value = "/user/logout", method = RequestMethod.GET) @RequestMapping(value = "/user/logout", method = RequestMethod.GET)
@RequiresAuthentication
public ResponseEntity<JSONObject> logout() { public ResponseEntity<JSONObject> logout() {
String token = request.getHeader("Authorization"); String token = request.getHeader("Authorization");
JSONObject resultMap = new JSONObject(true); JSONObject resultMap = new JSONObject(true);
...@@ -302,6 +304,7 @@ public class ChinaMobileRestApiController extends BaseController { ...@@ -302,6 +304,7 @@ public class ChinaMobileRestApiController extends BaseController {
*/ */
@ApiOperation(value = "插入机顶盒日志表", notes = "插入机顶盒日志表") @ApiOperation(value = "插入机顶盒日志表", notes = "插入机顶盒日志表")
@PostMapping(value = "/equitment/runLog") @PostMapping(value = "/equitment/runLog")
@RequiresAuthentication
public ResponseEntity<JSONObject> insertRunLog(RunLog runLog) { public ResponseEntity<JSONObject> insertRunLog(RunLog runLog) {
JSONObject resultMap = new JSONObject(); JSONObject resultMap = new JSONObject();
...@@ -324,6 +327,7 @@ public class ChinaMobileRestApiController extends BaseController { ...@@ -324,6 +327,7 @@ public class ChinaMobileRestApiController extends BaseController {
*/ */
@ApiOperation(value = "查询语言列表", notes = "查询语言列表") @ApiOperation(value = "查询语言列表", notes = "查询语言列表")
@PostMapping(value = "/language/info") @PostMapping(value = "/language/info")
@RequiresAuthentication
public ResponseEntity<JSONObject> languageInfo() { public ResponseEntity<JSONObject> languageInfo() {
JSONObject resultMap = new JSONObject(); JSONObject resultMap = new JSONObject();
...@@ -379,6 +383,7 @@ public class ChinaMobileRestApiController extends BaseController { ...@@ -379,6 +383,7 @@ public class ChinaMobileRestApiController extends BaseController {
@ApiImplicitParam(name = "language", value = "语言", dataType = "String", paramType = "query") @ApiImplicitParam(name = "language", value = "语言", dataType = "String", paramType = "query")
}) })
@GetMapping("/exhibitionBoard/getBoardInfo") @GetMapping("/exhibitionBoard/getBoardInfo")
@RequiresAuthentication
public Map<String, Object> getById(@RequestParam(value = "boardId") String id, @RequestParam(value = "language", required = false) LanguageEnum language) { public Map<String, Object> getById(@RequestParam(value = "boardId") String id, @RequestParam(value = "language", required = false) LanguageEnum language) {
ExhibitionBoard exhibitionBoard = exhibitionBoardService.getById(id); ExhibitionBoard exhibitionBoard = exhibitionBoardService.getById(id);
String exhibitionBoardCatId = exhibitionBoard.getExhibitionBoardCatId(); String exhibitionBoardCatId = exhibitionBoard.getExhibitionBoardCatId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment