Commit d5a6ed7d authored by wzp's avatar wzp

修改bug

parent adf431c2
......@@ -142,7 +142,7 @@ public class ChinaMobileRestApiController extends BaseController {
@ApiOperation(value = "机顶盒激活状态查询", notes = "机顶盒激活状态查询")
@GetMapping("/equitment/activity")
@RequiresAuthentication //@RequiresPermissions("/equitment/activity/")
//@RequiresAuthentication //@RequiresPermissions("/equitment/activity/")
public Map<String, Object> getActivity(@RequestParam(required = true) String mac) {
List<TBoxOperation> list = new ArrayList<>();
try {
......@@ -243,6 +243,7 @@ public class ChinaMobileRestApiController extends BaseController {
@ApiOperation(value = "获取单个成员信息")
@GetMapping(value = "/user/getUserInfo")
@RequiresAuthentication
public ResponseEntity<JSONObject> getById(String userId) {
JSONObject resultMap = new JSONObject(true);
try {
......@@ -278,6 +279,7 @@ public class ChinaMobileRestApiController extends BaseController {
}
@RequestMapping(value = "/user/logout", method = RequestMethod.GET)
@RequiresAuthentication
public ResponseEntity<JSONObject> logout() {
String token = request.getHeader("Authorization");
JSONObject resultMap = new JSONObject(true);
......@@ -302,6 +304,7 @@ public class ChinaMobileRestApiController extends BaseController {
*/
@ApiOperation(value = "插入机顶盒日志表", notes = "插入机顶盒日志表")
@PostMapping(value = "/equitment/runLog")
@RequiresAuthentication
public ResponseEntity<JSONObject> insertRunLog(RunLog runLog) {
JSONObject resultMap = new JSONObject();
......@@ -324,6 +327,7 @@ public class ChinaMobileRestApiController extends BaseController {
*/
@ApiOperation(value = "查询语言列表", notes = "查询语言列表")
@PostMapping(value = "/language/info")
@RequiresAuthentication
public ResponseEntity<JSONObject> languageInfo() {
JSONObject resultMap = new JSONObject();
......@@ -379,6 +383,7 @@ public class ChinaMobileRestApiController extends BaseController {
@ApiImplicitParam(name = "language", value = "语言", dataType = "String", paramType = "query")
})
@GetMapping("/exhibitionBoard/getBoardInfo")
@RequiresAuthentication
public Map<String, Object> getById(@RequestParam(value = "boardId") String id, @RequestParam(value = "language", required = false) LanguageEnum language) {
ExhibitionBoard exhibitionBoard = exhibitionBoardService.getById(id);
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